|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EjbServices
A container should implement this interface to allow Web Beans to resolve EJB and discover EJBs
Method Summary | |
---|---|
java.lang.Iterable<EjbDescriptor<?>> |
discoverEjbs()
Gets a descriptor for each EJB in the application |
SessionObjectReference |
resolveEjb(EjbDescriptor<?> ejbDescriptor)
Request a reference to an EJB session object from the container. |
java.lang.Object |
resolveEjb(InjectionPoint injectionPoint)
Resolve the value for the given @EJB injection point |
java.lang.Object |
resolveRemoteEjb(java.lang.String jndiName,
java.lang.String mappedName,
java.lang.String ejbLink)
Resolve a remote EJB reference. |
Method Detail |
---|
java.lang.Object resolveEjb(InjectionPoint injectionPoint)
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
conventionsSessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor)
ejbDescriptor
- the ejb to resolve
java.lang.Object resolveRemoteEjb(java.lang.String jndiName, java.lang.String mappedName, java.lang.String ejbLink)
jndiName
- the JNDI namemappedName
- the mapped nameejbLink
- the EJB link name
java.lang.IllegalStateException
- if no EJBs can be resolved for injection
java.lang.IllegalArgumentException
- if jndiName, mappedName and ejbLink are nulljava.lang.Iterable<EjbDescriptor<?>> discoverEjbs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |