Package com.sun.ejb.containers
Class StatefulContainerFactory
- java.lang.Object
-
- com.sun.ejb.containers.BaseContainerFactory
-
- com.sun.ejb.containers.StatefulContainerFactory
-
- All Implemented Interfaces:
ContainerFactory,org.glassfish.hk2.api.PostConstruct
@Service(name="StatefulContainerFactory") @PerLookup public class StatefulContainerFactory extends BaseContainerFactory implements org.glassfish.hk2.api.PostConstruct, ContainerFactory
A builder for StatefulSessionContainer. Takes care of building / initializing the StatefulSessionContainer with the following classes: a) Cache (LRU / NRU / FIFO / UnBounded) b) SFSBStoreManager (Using PersistenceStrategyBuilder) c) Cache passivation task (if idle-timeout is greater than 0) d) Passivated sessions removal task (if removal-timeout is greater than 0) e) CheckpointPolicy (if ha enabled) f) SFSBUUIDUtil g) BeanLifecycleManager- Author:
- Mahesh Kannan
-
-
Constructor Summary
Constructors Constructor Description StatefulContainerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildComponents(byte[] ipAddress, int port, org.glassfish.api.deployment.DeploymentContext dc)ContainercreateContainer(EjbDescriptor ejbDescriptor, ClassLoader loader, org.glassfish.api.deployment.DeploymentContext deployContext)Create the appropriate Container instance and initialize it.voidpostConstruct()-
Methods inherited from class com.sun.ejb.containers.BaseContainerFactory
getSecurityManager
-
-
-
-
Field Detail
-
_logger
protected static final Logger _logger
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
buildComponents
public void buildComponents(byte[] ipAddress, int port, org.glassfish.api.deployment.DeploymentContext dc) throws Exception- Throws:
Exception
-
createContainer
public Container createContainer(EjbDescriptor ejbDescriptor, ClassLoader loader, org.glassfish.api.deployment.DeploymentContext deployContext) throws Exception
Description copied from interface:ContainerFactoryCreate the appropriate Container instance and initialize it.- Specified by:
createContainerin interfaceContainerFactory- Parameters:
ejbDescriptor- the deployment descriptor of the EJB for which a container is to be created.- Throws:
Exception
-
-