org.apache.openejb.core.stateful
Class StatefulContainer

java.lang.Object
  extended by org.apache.openejb.core.stateful.StatefulContainer
All Implemented Interfaces:
Container, RpcContainer

public class StatefulContainer
extends Object
implements RpcContainer


Nested Class Summary
static class StatefulContainer.MethodType
           
 class StatefulContainer.StatefulCacheListener
           
 
Field Summary
protected  Cache<Object,Instance> cache
           
protected  Map<Object,BeanContext> deploymentsById
          Index used for getDeployments() and getDeploymentInfo(deploymentId).
protected  JtaEntityManagerRegistry entityManagerRegistry
           
 
Constructor Summary
StatefulContainer(Object id, SecurityService securityService, Cache<Object,Instance> cache)
           
StatefulContainer(Object id, SecurityService securityService, Cache<Object,Instance> cache, Duration accessTimeout)
           
 
Method Summary
protected  Object businessMethod(BeanContext beanContext, Object primKey, Class callInterface, Method callMethod, Object[] args, InterfaceType interfaceType)
           
protected  ProxyInfo createEJBObject(BeanContext beanContext, Method callMethod, Object[] args, InterfaceType interfaceType)
           
 void deploy(BeanContext beanContext)
           
 BeanContext getBeanContext(Object deploymentID)
           
 BeanContext[] getBeanContexts()
           
 Object getContainerID()
           
 ContainerType getContainerType()
           
 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(BeanContext beanContext, Object primKey, Class callInterface, Method callMethod, Object[] args, InterfaceType interfaceType)
           
 void start(BeanContext beanContext)
           
 void stop(BeanContext beanContext)
           
 void undeploy(BeanContext beanContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityManagerRegistry

protected final JtaEntityManagerRegistry entityManagerRegistry

deploymentsById

protected final Map<Object,BeanContext> deploymentsById
Index used for getDeployments() and getDeploymentInfo(deploymentId).


cache

protected final Cache<Object,Instance> cache
Constructor Detail

StatefulContainer

public StatefulContainer(Object id,
                         SecurityService securityService,
                         Cache<Object,Instance> cache)

StatefulContainer

public StatefulContainer(Object id,
                         SecurityService securityService,
                         Cache<Object,Instance> cache,
                         Duration accessTimeout)
Method Detail

getContainerType

public ContainerType getContainerType()
Specified by:
getContainerType in interface Container

getContainerID

public Object getContainerID()
Specified by:
getContainerID in interface Container

getBeanContexts

public BeanContext[] getBeanContexts()
Specified by:
getBeanContexts in interface Container

getBeanContext

public BeanContext getBeanContext(Object deploymentID)
Specified by:
getBeanContext in interface Container

start

public void start(BeanContext beanContext)
           throws OpenEJBException
Specified by:
start in interface Container
Throws:
OpenEJBException

stop

public void stop(BeanContext beanContext)
          throws OpenEJBException
Specified by:
stop in interface Container
Throws:
OpenEJBException

undeploy

public void undeploy(BeanContext beanContext)
              throws OpenEJBException
Specified by:
undeploy in interface Container
Throws:
OpenEJBException

deploy

public void deploy(BeanContext beanContext)
            throws OpenEJBException
Specified by:
deploy 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(BeanContext beanContext,
                                    Method callMethod,
                                    Object[] args,
                                    InterfaceType interfaceType)
                             throws OpenEJBException
Throws:
OpenEJBException

newPrimaryKey

protected Object newPrimaryKey()

removeEJBObject

protected Object removeEJBObject(BeanContext beanContext,
                                 Object primKey,
                                 Class callInterface,
                                 Method callMethod,
                                 Object[] args,
                                 InterfaceType interfaceType)
                          throws OpenEJBException
Throws:
OpenEJBException

businessMethod

protected Object businessMethod(BeanContext beanContext,
                                Object primKey,
                                Class callInterface,
                                Method callMethod,
                                Object[] args,
                                InterfaceType interfaceType)
                         throws OpenEJBException
Throws:
OpenEJBException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.