org.apache.openejb.core.stateful
Class StatefulContainer
java.lang.Object
org.apache.openejb.core.stateful.StatefulContainer
- All Implemented Interfaces:
- Container, TransactionContainer, RpcContainer
public class StatefulContainer
- extends Object
- implements RpcContainer, TransactionContainer
Method Summary |
protected Object |
_invoke(Method callMethod,
InterceptorStack interceptorStack,
Object[] args,
Object bean,
ThreadContext callContext)
|
protected Object |
_invoke(Method callMethod,
InterceptorStack interceptorStack,
Object[] args,
Object bean,
ThreadContext callContext,
TransactionContext txContext)
|
protected Object |
businessMethod(CoreDeploymentInfo deploymentInfo,
Object primKey,
Class callInterface,
Method callMethod,
Object[] args)
|
protected ProxyInfo |
createEJBObject(CoreDeploymentInfo deploymentInfo,
Class callInterface,
Method callMethod,
Object[] args)
|
void |
deploy(DeploymentInfo deploymentInfo)
|
DeploymentInfo[] |
deployments()
|
void |
discardInstance(Object bean,
ThreadContext threadContext)
|
Object |
getContainerID()
|
ContainerType |
getContainerType()
|
DeploymentInfo |
getDeploymentInfo(Object deploymentID)
|
StatefulInstanceManager |
getInstanceManager()
|
Object |
invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
|
Object |
invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
Deprecated. use invoke signature without 'securityIdentity' argument. |
protected Object |
newPrimaryKey()
|
protected StatefulInstanceManager |
newStatefulInstanceManager(TransactionManager transactionManager,
SecurityService securityService,
Class passivator,
int timeOut,
int poolSize,
int bulkPassivate)
|
protected Object |
removeEJBObject(CoreDeploymentInfo deploymentInfo,
Object primKey,
Class callInterface,
Method callMethod,
Object[] args)
|
void |
undeploy(DeploymentInfo info)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instanceManager
protected final StatefulInstanceManager instanceManager
entityManagerRegistry
protected final JtaEntityManagerRegistry entityManagerRegistry
deploymentsById
protected final Map<Object,DeploymentInfo> deploymentsById
- Index used for getDeployments() and getDeploymentInfo(deploymentId).
StatefulContainer
public StatefulContainer(Object id,
TransactionManager transactionManager,
SecurityService securityService,
Class passivator,
int timeOut,
int poolSize,
int bulkPassivate)
throws OpenEJBException
- Throws:
OpenEJBException
newStatefulInstanceManager
protected StatefulInstanceManager newStatefulInstanceManager(TransactionManager transactionManager,
SecurityService securityService,
Class passivator,
int timeOut,
int poolSize,
int bulkPassivate)
throws OpenEJBException
- Throws:
OpenEJBException
getContainerType
public ContainerType getContainerType()
- Specified by:
getContainerType
in interface Container
getContainerID
public Object getContainerID()
- Specified by:
getContainerID
in interface Container
getInstanceManager
public StatefulInstanceManager getInstanceManager()
deployments
public DeploymentInfo[] deployments()
- Specified by:
deployments
in interface Container
getDeploymentInfo
public DeploymentInfo getDeploymentInfo(Object deploymentID)
- Specified by:
getDeploymentInfo
in interface Container
deploy
public void deploy(DeploymentInfo deploymentInfo)
throws OpenEJBException
- Specified by:
deploy
in interface Container
- Throws:
OpenEJBException
undeploy
public void undeploy(DeploymentInfo info)
throws OpenEJBException
- Specified by:
undeploy
in interface Container
- Throws:
OpenEJBException
invoke
public Object invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
throws OpenEJBException
- Deprecated. use invoke signature without 'securityIdentity' argument.
- Specified by:
invoke
in interface RpcContainer
- Throws:
OpenEJBException
invoke
public Object invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
throws OpenEJBException
- Specified by:
invoke
in interface RpcContainer
- Throws:
OpenEJBException
createEJBObject
protected ProxyInfo createEJBObject(CoreDeploymentInfo deploymentInfo,
Class callInterface,
Method callMethod,
Object[] args)
throws OpenEJBException
- Throws:
OpenEJBException
newPrimaryKey
protected Object newPrimaryKey()
removeEJBObject
protected Object removeEJBObject(CoreDeploymentInfo deploymentInfo,
Object primKey,
Class callInterface,
Method callMethod,
Object[] args)
throws OpenEJBException
- Throws:
OpenEJBException
businessMethod
protected Object businessMethod(CoreDeploymentInfo deploymentInfo,
Object primKey,
Class callInterface,
Method callMethod,
Object[] args)
throws OpenEJBException
- Throws:
OpenEJBException
_invoke
protected Object _invoke(Method callMethod,
InterceptorStack interceptorStack,
Object[] args,
Object bean,
ThreadContext callContext)
throws OpenEJBException
- Throws:
OpenEJBException
_invoke
protected Object _invoke(Method callMethod,
InterceptorStack interceptorStack,
Object[] args,
Object bean,
ThreadContext callContext,
TransactionContext txContext)
throws OpenEJBException
- Throws:
OpenEJBException
discardInstance
public void discardInstance(Object bean,
ThreadContext threadContext)
- Specified by:
discardInstance
in interface TransactionContainer
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.