org.openejb.server.ejbd
Class CallContext

java.lang.Object
  extended by org.openejb.server.ejbd.CallContext

public class CallContext
extends java.lang.Object

Author:
David Blevins

Field Summary
protected  DeploymentInfo deploymentInfo
          The deploymentInfo of the bean executed
protected  EJBRequest request
          The EJBRequest object from the client
protected static FastThreadLocal threads
          Hashtable of threads executing in this server
 
Constructor Summary
CallContext()
          Constructs a new CallContext
 
Method Summary
static CallContext getCallContext()
          Gets the CallContext assigned to the current thread
 DeploymentInfo getDeploymentInfo()
          Returns the DeploymentInfo assigned to this CallContext
 EJBRequest getEJBRequest()
          Returns the EJBRequest this thread is satisfying.
 void reset()
          Invalidates the data in this CallContext
static void setCallContext(CallContext ctx)
          Sets the CallContext assigned to the current thread with the CallContext instance passed in
 void setDeploymentInfo(DeploymentInfo info)
          Sets the DeploymentInfo assigned to this CallContext
 void setEJBRequest(EJBRequest request)
          Sets the EJBRequest this thread is satisfying.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threads

protected static final FastThreadLocal threads
Hashtable of threads executing in this server


deploymentInfo

protected DeploymentInfo deploymentInfo
The deploymentInfo of the bean executed


request

protected EJBRequest request
The EJBRequest object from the client

Constructor Detail

CallContext

public CallContext()
Constructs a new CallContext

Method Detail

reset

public void reset()
Invalidates the data in this CallContext


getDeploymentInfo

public DeploymentInfo getDeploymentInfo()
Returns the DeploymentInfo assigned to this CallContext

Returns:
DeploymentInfo

setDeploymentInfo

public void setDeploymentInfo(DeploymentInfo info)
Sets the DeploymentInfo assigned to this CallContext

Parameters:
info -

getEJBRequest

public EJBRequest getEJBRequest()
Returns the EJBRequest this thread is satisfying.

Returns:
EJBRequest

setEJBRequest

public void setEJBRequest(EJBRequest request)
Sets the EJBRequest this thread is satisfying.

Parameters:
request -

setCallContext

public static void setCallContext(CallContext ctx)
Sets the CallContext assigned to the current thread with the CallContext instance passed in

Parameters:
ctx -

getCallContext

public static CallContext getCallContext()
Gets the CallContext assigned to the current thread

Returns:
CallContext


Copyright © 1999-2011 OpenEJB. All Rights Reserved.