public interface ResourceInjectionServices extends Service
ResourceInjectionServices is per-module service.| Modifier and Type | Method and Description |
|---|---|
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.
|
ResourceReferenceFactory<Object> registerResourceInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
ResourceReferenceFactory is returned which may be used at runtime for creating instances of the
resource.injectionPoint - the injection point metadatajavax.enterprise.inject.spi.DefinitionException - if the injection point is not annotated with @Resource, if the injection point is a method
that doesn't follow JavaBean conventions or if the injection point type does not match the resource typeIllegalStateException - if no resource can be resolvedResourceReferenceFactory<Object> registerResourceInjectionPoint(String jndiName, String mappedName)
ResourceReferenceFactory is returned which may be used at runtime
for creating instances of the resource.jndiName - JNDI namemappedName - mapped nameIllegalStateException - if no resource can be resolvedIllegalArgumentException - if both jndiName and mappedName are nullCopyright © 2008–2019. All rights reserved.