public class StatefulContainer extends java.lang.Object implements RpcContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
StatefulContainer.BeanContextFilter |
static class |
StatefulContainer.MethodType |
class |
StatefulContainer.StatefulCacheListener |
| Modifier and Type | Field and Description |
|---|---|
protected Cache<java.lang.Object,Instance> |
cache |
protected java.util.Map<java.lang.Object,BeanContext> |
deploymentsById
Index used for getDeployments() and getDeploymentInfo(deploymentId).
|
protected JtaEntityManagerRegistry |
entityManagerRegistry |
protected LockFactory |
lockFactory |
| Constructor and Description |
|---|
StatefulContainer(java.lang.Object id,
SecurityService securityService,
Cache<java.lang.Object,Instance> cache) |
StatefulContainer(java.lang.Object id,
SecurityService securityService,
Cache<java.lang.Object,Instance> cache,
Duration accessTimeout,
boolean preventExtendedEntityManagerSerialization,
LockFactory lockFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
businessMethod(BeanContext beanContext,
java.lang.Object primKey,
java.lang.Class callInterface,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
InterfaceType interfaceType) |
protected ProxyInfo |
createEJBObject(BeanContext beanContext,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
InterfaceType interfaceType) |
void |
deploy(BeanContext beanContext) |
BeanContext |
getBeanContext(java.lang.Object deploymentID) |
BeanContext[] |
getBeanContexts() |
Cache<java.lang.Object,Instance> |
getCache() |
java.lang.Object |
getContainerID() |
ContainerType |
getContainerType() |
LockFactory |
getLockFactory() |
java.lang.Object |
invoke(java.lang.Object deployID,
InterfaceType type,
java.lang.Class callInterface,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey) |
protected java.lang.Object |
newPrimaryKey() |
protected java.lang.Object |
removeEJBObject(BeanContext beanContext,
java.lang.Object primKey,
java.lang.Class callInterface,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
InterfaceType interfaceType) |
void |
start(BeanContext beanContext) |
void |
stop(BeanContext beanContext) |
void |
undeploy(BeanContext beanContext) |
protected final JtaEntityManagerRegistry entityManagerRegistry
protected final java.util.Map<java.lang.Object,BeanContext> deploymentsById
protected final LockFactory lockFactory
public StatefulContainer(java.lang.Object id,
SecurityService securityService,
Cache<java.lang.Object,Instance> cache)
public StatefulContainer(java.lang.Object id,
SecurityService securityService,
Cache<java.lang.Object,Instance> cache,
Duration accessTimeout,
boolean preventExtendedEntityManagerSerialization,
LockFactory lockFactory)
public LockFactory getLockFactory()
public ContainerType getContainerType()
getContainerType in interface Containerpublic java.lang.Object getContainerID()
getContainerID in interface Containerpublic BeanContext[] getBeanContexts()
getBeanContexts in interface Containerpublic BeanContext getBeanContext(java.lang.Object deploymentID)
getBeanContext in interface Containerpublic void start(BeanContext beanContext) throws OpenEJBException
start in interface ContainerOpenEJBExceptionpublic void stop(BeanContext beanContext) throws OpenEJBException
stop in interface ContainerOpenEJBExceptionpublic void undeploy(BeanContext beanContext) throws OpenEJBException
undeploy in interface ContainerOpenEJBExceptionpublic void deploy(BeanContext beanContext) throws OpenEJBException
deploy in interface ContainerOpenEJBExceptionpublic java.lang.Object invoke(java.lang.Object deployID,
InterfaceType type,
java.lang.Class callInterface,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey)
throws OpenEJBException
invoke in interface RpcContainerOpenEJBExceptionprotected ProxyInfo createEJBObject(BeanContext beanContext, java.lang.reflect.Method callMethod, java.lang.Object[] args, InterfaceType interfaceType) throws OpenEJBException
OpenEJBExceptionprotected java.lang.Object newPrimaryKey()
protected java.lang.Object removeEJBObject(BeanContext beanContext, java.lang.Object primKey, java.lang.Class callInterface, java.lang.reflect.Method callMethod, java.lang.Object[] args, InterfaceType interfaceType) throws OpenEJBException
OpenEJBExceptionprotected java.lang.Object businessMethod(BeanContext beanContext, java.lang.Object primKey, java.lang.Class callInterface, java.lang.reflect.Method callMethod, java.lang.Object[] args, InterfaceType interfaceType) throws OpenEJBException
OpenEJBException