|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceInjectionServices
A container should implement this interface to allow the Weld to
resolve Resources
ResourceInjectionServices is per-module service.
| Method Summary | |
|---|---|
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)
Deprecated. Instead of calling this method at runtime, Weld should register every resource injection point at bootstrap using registerResourceInjectionPoint(InjectionPoint)
and use the returned factory for producing injectable instances at runtime. |
Object |
resolveResource(String jndiName,
String mappedName)
Deprecated. Instead of calling this method at runtime, Weld should register every resource injection point at bootstrap using registerResourceInjectionPoint(String, String)
and use the returned factory for producing injectable instances at runtime. |
| Methods inherited from interface org.jboss.weld.bootstrap.api.Service |
|---|
cleanup |
| Method Detail |
|---|
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 metadata
IllegalArgumentException - if the injection point is not annotated with @Resource, or, if
the injection point is a method that doesn't follow JavaBean
conventions
IllegalStateException - if no resource can be resolved
ResourceReferenceFactory<Object> registerResourceInjectionPoint(String jndiName,
String mappedName)
ResourceReferenceFactory is returned which may be used at runtime for creating
instances of the resource.
injectionPoint - the injection point metadata
IllegalStateException - if no resource can be resolved
IllegalArgumentException - if both jndiName and mappedName are null@Deprecated Object resolveResource(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
registerResourceInjectionPoint(InjectionPoint)
and use the returned factory for producing injectable instances at runtime.
injectionPoint - the injection point metadata
IllegalArgumentException - if the injection point is not annotated with @Resource, or, if
the injection point is a method that doesn't follow JavaBean
conventions
IllegalStateException - if no resource can be resolved for injection
@Deprecated
Object resolveResource(String jndiName,
String mappedName)
registerResourceInjectionPoint(String, String)
and use the returned factory for producing injectable instances at runtime.
injectionPoint - the injection point metadata
IllegalStateException - if no resource can be resolved for injection
IllegalArgumentException - if both jndiName and mappedName are null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||