Class ForwardingResourceInjectionServices
java.lang.Object
org.jboss.weld.injection.spi.helpers.ForwardingResourceInjectionServices
- All Implemented Interfaces:
Service,ResourceInjectionServices
public abstract class ForwardingResourceInjectionServices
extends Object
implements ResourceInjectionServices
An implementation of
ResourceInjectionServices which forwards all its method calls to another
ResourceInjectionServices
Subclasses should override one or more methods to modify the behavior of the backing ResourceInjectionServices as
desired per the decorator pattern.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ResourceInjectionServicesdelegate()Returns the delegateregisterResourceInjectionPoint(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint) Register a resource injection point.registerResourceInjectionPoint(String jndiName, String mappedName) Register a resource injection point with the given JNDI name and mapped name.
-
Constructor Details
-
ForwardingResourceInjectionServices
public ForwardingResourceInjectionServices()
-
-
Method Details
-
delegate
Returns the delegate- Returns:
- delegate
-
registerResourceInjectionPoint
public ResourceReferenceFactory<Object> registerResourceInjectionPoint(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint) Description copied from interface:ResourceInjectionServicesRegister a resource injection point. The implementation validates the injection point. If the validation passes, an instance ofResourceReferenceFactoryis returned which may be used at runtime for creating instances of the resource.- Specified by:
registerResourceInjectionPointin interfaceResourceInjectionServices- Parameters:
injectionPoint- the injection point metadata- Returns:
- resource factory
-
registerResourceInjectionPoint
public ResourceReferenceFactory<Object> registerResourceInjectionPoint(String jndiName, String mappedName) Description copied from interface:ResourceInjectionServicesRegister a resource injection point with the given JNDI name and mapped name. The implementation validates the injection point. If the validation passes, an instance ofResourceReferenceFactoryis returned which may be used at runtime for creating instances of the resource.- Specified by:
registerResourceInjectionPointin interfaceResourceInjectionServices- Parameters:
jndiName- JNDI namemappedName- mapped name- Returns:
- resource factory
-