public abstract class AbstractResourceServices extends java.lang.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 javax.naming.Context |
getContext() |
static java.lang.String |
getPropertyName(java.lang.reflect.Method method) |
protected java.lang.String |
getResourceName(InjectionPoint injectionPoint) |
protected java.lang.String |
getResourceName(java.lang.String jndiName,
java.lang.String mappedName) |
ResourceReferenceFactory<java.lang.Object> |
registerResourceInjectionPoint(InjectionPoint injectionPoint)
Register a resource injection point.
|
ResourceReferenceFactory<java.lang.Object> |
registerResourceInjectionPoint(java.lang.String jndiName,
java.lang.String mappedName)
Register a resource injection point with the given JNDI name and mapped name.
|
java.lang.Object |
resolveResource(InjectionPoint injectionPoint)
Resolve the value for the given @Resource injection point
|
java.lang.Object |
resolveResource(java.lang.String jndiName,
java.lang.String mappedName)
Resolve the value for the given JNDI name and mapped name
|
public java.lang.Object resolveResource(InjectionPoint injectionPoint)
ResourceInjectionServicesresolveResource in interface ResourceInjectionServicesinjectionPoint - the injection point metadatapublic java.lang.Object resolveResource(java.lang.String jndiName,
java.lang.String mappedName)
ResourceInjectionServicesresolveResource in interface ResourceInjectionServicesprotected java.lang.String getResourceName(java.lang.String jndiName,
java.lang.String mappedName)
protected abstract javax.naming.Context getContext()
protected java.lang.String getResourceName(InjectionPoint injectionPoint)
public static java.lang.String getPropertyName(java.lang.reflect.Method method)
public ResourceReferenceFactory<java.lang.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<java.lang.Object> registerResourceInjectionPoint(java.lang.String jndiName, java.lang.String mappedName)
ResourceInjectionServicesResourceReferenceFactory is returned which may be used at runtime
for creating instances of the resource.registerResourceInjectionPoint in interface ResourceInjectionServicesCopyright © 2014. All Rights Reserved.