Class AbstractResourceServices
- java.lang.Object
-
- org.jboss.weld.injection.spi.helpers.AbstractResourceServices
-
- All Implemented Interfaces:
Service,ResourceInjectionServices
public abstract class AbstractResourceServices extends Object implements Service, ResourceInjectionServices
-
-
Constructor Summary
Constructors Constructor Description AbstractResourceServices()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcleanup()Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.protected abstract ContextgetContext()static StringgetPropertyName(Method method)protected ResourcegetResourceAnnotation(javax.enterprise.inject.spi.InjectionPoint injectionPoint)protected StringgetResourceName(String jndiName, String mappedName)protected StringgetResourceName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)ResourceReferenceFactory<Object>registerResourceInjectionPoint(String jndiName, String mappedName)Register a resource injection point with the given JNDI name and mapped name.ResourceReferenceFactory<Object>registerResourceInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)Register a resource injection point.ObjectresolveResource(String jndiName, String mappedName)ObjectresolveResource(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
-
-
-
Method Detail
-
resolveResource
public Object resolveResource(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
-
getContext
protected abstract Context getContext()
-
getResourceName
protected String getResourceName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
-
registerResourceInjectionPoint
public ResourceReferenceFactory<Object> registerResourceInjectionPoint(javax.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
-
getResourceAnnotation
protected Resource getResourceAnnotation(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
-
-