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(javax.enterprise.inject.spi.InjectionPoint injectionPoint) |
protected String |
getResourceName(String jndiName,
String mappedName) |
ResourceReferenceFactory<Object> |
registerResourceInjectionPoint(javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
ResourceInjectionServices
resolveResource
in interface ResourceInjectionServices
injectionPoint
- the injection point metadatapublic Object resolveResource(String jndiName, String mappedName)
ResourceInjectionServices
resolveResource
in interface ResourceInjectionServices
jndiName
- JNDI namemappedName
- mapped nameprotected abstract Context getContext()
protected String getResourceName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
public ResourceReferenceFactory<Object> registerResourceInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
ResourceInjectionServices
ResourceReferenceFactory
is returned which may be used at runtime for creating instances of the
resource.registerResourceInjectionPoint
in interface ResourceInjectionServices
injectionPoint
- the injection point metadatapublic ResourceReferenceFactory<Object> registerResourceInjectionPoint(String jndiName, String mappedName)
ResourceInjectionServices
ResourceReferenceFactory
is returned which may be used at runtime
for creating instances of the resource.registerResourceInjectionPoint
in interface ResourceInjectionServices
jndiName
- JNDI namemappedName
- mapped nameCopyright © 2008-2015. All Rights Reserved.