|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceServices
A container should implement this interface to allow the Web Beans RI to resolve Resources
Method Summary | |
---|---|
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 |
Method Detail |
---|
java.lang.Object resolveResource(InjectionPoint injectionPoint)
injectionPoint
- the injection point metadata
java.lang.IllegalArgumentException
- if the injection point is not annotated with @Resource, or, if
the injection point is a method that doesn't follow JavaBean
conventions
java.lang.IllegalStateException
- if no resource can be resolved for injectionjava.lang.Object resolveResource(java.lang.String jndiName, java.lang.String mappedName)
injectionPoint
- the injection point metadata
java.lang.IllegalStateException
- if no resource can be resolved for injection
java.lang.IllegalArgumentException
- if both jndiName and mappedName are null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |