|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.injection.spi.helpers.AbstractResourceServices
public abstract class AbstractResourceServices
| Constructor Summary | |
|---|---|
AbstractResourceServices()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractResourceServices()
| Method Detail |
|---|
public Object resolveResource(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
ResourceInjectionServices
resolveResource in interface ResourceInjectionServicesinjectionPoint - the injection point metadata
public Object resolveResource(String jndiName,
String mappedName)
ResourceInjectionServices
resolveResource in interface ResourceInjectionServices
protected String getResourceName(String jndiName,
String mappedName)
protected abstract Context getContext()
protected String getResourceName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
public static String getPropertyName(Method method)
public ResourceReferenceFactory<Object> registerResourceInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
ResourceInjectionServicesResourceReferenceFactory is returned which may be used at runtime for creating instances of the resource.
registerResourceInjectionPoint in interface ResourceInjectionServicesinjectionPoint - the injection point metadata
public 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 ResourceInjectionServicespublic void cleanup()
Service
cleanup in interface Service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||