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 EJBs EjbServices is a per-BeanDeploymentArchive service.
    Author:
    Pete Muir, Marius Bogoevici
    • 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 to
        interceptorBindings - the interceptor bindings descriptor