Package com.sun.ejb

Interface ContainerFactory

  • All Known Implementing Classes:
    SingletonContainerFactory, StatefulContainerFactory, StatelessContainerFactory

    @Contract
    public interface ContainerFactory
    ContainerFactory creates the appropriate Container instance (StatefulSessionContainer, StatelessSessionContainer, EntityContainer, MessageBeanContainer) and initializes it. It is also a factory for EJBObject/Home instances which are needed by the Protocol Manager when a remote invocation arrives.
    • Method Detail

      • createContainer

        Container createContainer​(EjbDescriptor ejbDescriptor,
                                  ClassLoader loader,
                                  org.glassfish.api.deployment.DeploymentContext deployContext)
                           throws Exception
        Create the appropriate Container instance and initialize it.
        Parameters:
        ejbDescriptor - the deployment descriptor of the EJB for which a container is to be created.
        Throws:
        Exception