Package org.jboss.weld.ejb.spi
Interface EjbServices
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
ForwardingEjbServices
public interface EjbServices extends Service
A container should implement this interface to allow Weld to resolve EJB and discover EJBsEjbServices
is a per-BeanDeploymentArchive service.- Author:
- Pete Muir, Marius Bogoevici
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings)
Provides interceptor binding metadata to the container.SessionObjectReference
resolveEjb(EjbDescriptor<?> ejbDescriptor)
Request a reference to an EJB session object from the container.
-
-
-
Method Detail
-
resolveEjb
SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor)
Request a reference to an EJB session object from the container. If the EJB being resolved is a stateful session bean, the container should ensure the session bean is created before this method returns.- Parameters:
ejbDescriptor
- the ejb to resolve- Returns:
- a reference to the session object
-
registerInterceptors
void registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings)
Provides interceptor binding metadata to the container. This method should be called before any EJB object is created.- Parameters:
ejbDescriptor
- the ejb to bound interceptors tointerceptorBindings
- the interceptor bindings descriptor
-
-