org.apache.openejb.core.stateful
Class StatefulContainer
java.lang.Object
org.apache.openejb.core.stateful.StatefulContainer
- All Implemented Interfaces:
- Container, RpcContainer
public class StatefulContainer
- extends Object
- implements RpcContainer
Method Summary |
protected Object |
businessMethod(CoreDeploymentInfo deploymentInfo,
Object primKey,
Class callInterface,
Method callMethod,
Object[] args,
InterfaceType interfaceType)
|
protected ProxyInfo |
createEJBObject(CoreDeploymentInfo deploymentInfo,
Method callMethod,
Object[] args,
InterfaceType interfaceType)
|
void |
deploy(DeploymentInfo deploymentInfo)
|
DeploymentInfo[] |
deployments()
|
Object |
getContainerID()
|
ContainerType |
getContainerType()
|
DeploymentInfo |
getDeploymentInfo(Object deploymentID)
|
Object |
invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
|
Object |
invoke(Object deployID,
InterfaceType type,
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 Object |
removeEJBObject(CoreDeploymentInfo deploymentInfo,
Object primKey,
Class callInterface,
Method callMethod,
Object[] args,
InterfaceType interfaceType)
|
void |
undeploy(DeploymentInfo info)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityManagerRegistry
protected final JtaEntityManagerRegistry entityManagerRegistry
deploymentsById
protected final Map<Object,DeploymentInfo> deploymentsById
- Index used for getDeployments() and getDeploymentInfo(deploymentId).
cache
protected final Cache<Object,Instance> cache
StatefulContainer
public StatefulContainer(Object id,
SecurityService securityService,
Cache<Object,Instance> cache)
getContainerType
public ContainerType getContainerType()
- Specified by:
getContainerType
in interface Container
getContainerID
public Object getContainerID()
- Specified by:
getContainerID
in interface Container
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
invoke
public Object invoke(Object deployID,
InterfaceType type,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
throws OpenEJBException
- Specified by:
invoke
in interface RpcContainer
- Throws:
OpenEJBException
createEJBObject
protected ProxyInfo createEJBObject(CoreDeploymentInfo deploymentInfo,
Method callMethod,
Object[] args,
InterfaceType interfaceType)
throws OpenEJBException
- Throws:
OpenEJBException
newPrimaryKey
protected Object newPrimaryKey()
removeEJBObject
protected Object removeEJBObject(CoreDeploymentInfo deploymentInfo,
Object primKey,
Class callInterface,
Method callMethod,
Object[] args,
InterfaceType interfaceType)
throws OpenEJBException
- Throws:
OpenEJBException
businessMethod
protected Object businessMethod(CoreDeploymentInfo deploymentInfo,
Object primKey,
Class callInterface,
Method callMethod,
Object[] args,
InterfaceType interfaceType)
throws OpenEJBException
- Throws:
OpenEJBException
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.