public abstract class AbstractResourceServices extends Object implements Service, ResourceInjectionServices
| Constructor and Description |
|---|
AbstractResourceServices() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
protected abstract Context |
getContext() |
static String |
getPropertyName(Method method) |
protected String |
getResourceName(InjectionPoint injectionPoint) |
protected String |
getResourceName(String jndiName,
String mappedName) |
ResourceReferenceFactory<Object> |
registerResourceInjectionPoint(InjectionPoint injectionPoint)
Register a resource injection point.
|
ResourceReferenceFactory<Object> |
registerResourceInjectionPoint(String jndiName,
String mappedName)
Register a resource injection point with the given JNDI name and mapped name.
|
Object |
resolveResource(InjectionPoint injectionPoint)
Resolve the value for the given @Resource injection point
|
Object |
resolveResource(String jndiName,
String mappedName)
Resolve the value for the given JNDI name and mapped name
|
public Object resolveResource(InjectionPoint injectionPoint)
ResourceInjectionServicesresolveResource in interface ResourceInjectionServicesinjectionPoint - the injection point metadatapublic Object resolveResource(String jndiName, String mappedName)
ResourceInjectionServicesresolveResource in interface ResourceInjectionServicesjndiName - JNDI namemappedName - mapped nameprotected abstract Context getContext()
protected String getResourceName(InjectionPoint injectionPoint)
public ResourceReferenceFactory<Object> registerResourceInjectionPoint(InjectionPoint injectionPoint)
ResourceInjectionServicesResourceReferenceFactory is returned which may be used at runtime for creating instances of the
resource.registerResourceInjectionPoint in interface ResourceInjectionServicesinjectionPoint - the injection point metadatapublic ResourceReferenceFactory<Object> registerResourceInjectionPoint(String jndiName, String mappedName)
ResourceInjectionServicesResourceReferenceFactory is returned which may be used at runtime
for creating instances of the resource.registerResourceInjectionPoint in interface ResourceInjectionServicesjndiName - JNDI namemappedName - mapped nameCopyright © 2015. All Rights Reserved.