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 void
buildComponents(byte[] ipAddress, int port, DeploymentContext dc)
Container
createContainer(EjbDescriptor ejbDescriptor, ClassLoader loader, DeploymentContext deployContext)
Create the appropriate Container instance and initialize it.void
postConstruct()
-
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:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
buildComponents
public void buildComponents(byte[] ipAddress, int port, DeploymentContext dc) throws Exception
- Throws:
Exception
-
createContainer
public Container createContainer(EjbDescriptor ejbDescriptor, ClassLoader loader, DeploymentContext deployContext) throws Exception
Description copied from interface:ContainerFactory
Create the appropriate Container instance and initialize it.- Specified by:
createContainer
in interfaceContainerFactory
- Parameters:
ejbDescriptor
- the deployment descriptor of the EJB for which a container is to be created.- Throws:
Exception
-
-