public class ManagedContainer extends java.lang.Object implements RpcContainer
Modifier and Type | Class and Description |
---|---|
static class |
ManagedContainer.MethodType |
class |
ManagedContainer.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 |
Constructor and Description |
---|
ManagedContainer(java.lang.Object id,
SecurityService securityService) |
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() |
java.lang.Object |
getContainerID() |
ContainerType |
getContainerType() |
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 bean) |
protected final JtaEntityManagerRegistry entityManagerRegistry
protected final java.util.Map<java.lang.Object,BeanContext> deploymentsById
public ManagedContainer(java.lang.Object id, SecurityService securityService) throws SystemException
SystemException
public ContainerType getContainerType()
getContainerType
in interface Container
public java.lang.Object getContainerID()
getContainerID
in interface Container
public BeanContext[] getBeanContexts()
getBeanContexts
in interface Container
public BeanContext getBeanContext(java.lang.Object deploymentID)
getBeanContext
in interface Container
public void start(BeanContext beanContext) throws OpenEJBException
start
in interface Container
OpenEJBException
public void stop(BeanContext beanContext) throws OpenEJBException
stop
in interface Container
OpenEJBException
public void undeploy(BeanContext bean) throws OpenEJBException
undeploy
in interface Container
OpenEJBException
public void deploy(BeanContext beanContext) throws OpenEJBException
deploy
in interface Container
OpenEJBException
public 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 RpcContainer
OpenEJBException
protected ProxyInfo createEJBObject(BeanContext beanContext, java.lang.reflect.Method callMethod, java.lang.Object[] args, InterfaceType interfaceType) throws OpenEJBException
OpenEJBException
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) throws OpenEJBException
OpenEJBException
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) throws OpenEJBException
OpenEJBException