org.apache.openejb.core.stateless
Class StatelessContainer

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

public class StatelessContainer
extends Object
implements RpcContainer


Constructor Summary
StatelessContainer(Object id, SecurityService securityService, Duration accessTimeout, Duration closeTimeout, Pool.Builder poolBuilder, int callbackThreads)
           
 
Method Summary
protected  Object _invoke(Class callInterface, Method callMethod, Method runMethod, Object[] args, Object object, ThreadContext callContext)
          Deprecated.  
protected  Object _invoke(Method callMethod, Method runMethod, Object[] args, Instance instance, ThreadContext callContext, InterfaceType type)
           
protected  ProxyInfo createEJBObject(BeanContext beanContext, Method callMethod)
           
 void deploy(BeanContext beanContext)
           
 BeanContext getBeanContext(Object deploymentID)
           
 BeanContext[] getBeanContexts()
           
 Object getContainerID()
           
 ContainerType getContainerType()
           
 StatelessInstanceManager getInstanceManager()
           
 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.
 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
 

Constructor Detail

StatelessContainer

public StatelessContainer(Object id,
                          SecurityService securityService,
                          Duration accessTimeout,
                          Duration closeTimeout,
                          Pool.Builder poolBuilder,
                          int callbackThreads)
Method Detail

getBeanContexts

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

getBeanContext

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

getContainerType

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

getContainerID

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

deploy

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

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)
Specified by:
undeploy in interface Container

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

getInstanceManager

public StatelessInstanceManager getInstanceManager()

_invoke

protected Object _invoke(Class callInterface,
                         Method callMethod,
                         Method runMethod,
                         Object[] args,
                         Object object,
                         ThreadContext callContext)
                  throws OpenEJBException
Deprecated. 

Throws:
OpenEJBException

_invoke

protected Object _invoke(Method callMethod,
                         Method runMethod,
                         Object[] args,
                         Instance instance,
                         ThreadContext callContext,
                         InterfaceType type)
                  throws OpenEJBException
Throws:
OpenEJBException

createEJBObject

protected ProxyInfo createEJBObject(BeanContext beanContext,
                                    Method callMethod)


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