|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EjbResolver
A container should implement this interface to allow the Web Beans RI to resolve EJBs, Resources and JPA persistence units
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_NAME
|
| Method Summary | |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getEJBAnnotation()
Get the annotation which defines an @EJB injection point |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getPersistenceContextAnnotation()
Get the annotation which defines a @PersistenceContext injection point |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getResourceAnnotation()
Get the annotation which defines a @Resource injection point |
java.lang.Object |
resolveEjb(InjectionPoint injectionPoint,
NamingContext namingContext)
Resolve the value for the given @EJB injection point |
java.lang.Object |
resolvePersistenceContext(InjectionPoint injectionPoint,
NamingContext namingContext)
Resolve the value for the given @PersistenceContext injection point |
java.lang.Object |
resolveResource(InjectionPoint injectionPoint,
NamingContext namingContext)
Resolve the value for the given @Resource injection point |
| Field Detail |
|---|
static final java.lang.String PROPERTY_NAME
| Method Detail |
|---|
java.lang.Object resolveEjb(InjectionPoint injectionPoint,
NamingContext namingContext)
injectionPoint - the injection point metadata
java.lang.IllegalArgumentException - if the injection point is not annotated with @EJB, or, if the
injection point is a method that doesn't follow JavaBean
conventions
java.lang.IllegalStateException - if no EJBs can be resolved for injection
java.lang.Object resolvePersistenceContext(InjectionPoint injectionPoint,
NamingContext namingContext)
injectionPoint - the injection point metadatanamingContext - the pluggable Web Beans JNDI lookup facility
java.lang.IllegalArgumentException - if the injection point is not annotated with
java.lang.IllegalStateException - if no suitable persistence units can be resolved for injection
java.lang.Object resolveResource(InjectionPoint injectionPoint,
NamingContext namingContext)
injectionPoint - the injection point metadatanamingContext - the pluggable Web Beans JNDI lookup facility
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.Class<? extends java.lang.annotation.Annotation> getEJBAnnotation()
java.lang.Class<? extends java.lang.annotation.Annotation> getPersistenceContextAnnotation()
java.lang.Class<? extends java.lang.annotation.Annotation> getResourceAnnotation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||