org.openejb.core
Class ThreadContext

java.lang.Object
  extended by org.openejb.core.ThreadContext
All Implemented Interfaces:
java.lang.Cloneable

public class ThreadContext
extends java.lang.Object
implements java.lang.Cloneable

TODO: Add comment


Field Summary
protected  byte currentOperation
          TODO: Add comment
protected  DeploymentInfo deploymentInfo
          TODO: Add comment
protected static java.lang.Class implClass
          TODO: Add comment
protected  java.lang.Object primaryKey
          TODO: Add comment
protected  java.lang.Object securityIdentity
          TODO: Add comment
protected static FastThreadLocal threadStorage
          TODO: Add comment
protected  java.lang.Object unspecified
          Unspecified is any object that a customer container may want to attach to the current thread context.
protected  boolean valid
          TODO: Add comment
 
Constructor Summary
ThreadContext()
           
 
Method Summary
 java.lang.Object clone()
           
 byte getCurrentOperation()
           
 DeploymentInfo getDeploymentInfo()
           
 java.lang.Object getPrimaryKey()
           
 java.lang.Object getSecurityIdentity()
           
static ThreadContext getThreadContext()
           
 java.lang.Object getUnspecified()
           
static void invalidate()
           
static boolean isValid()
           
protected  void makeInvalid()
           
protected static ThreadContext newThreadContext()
           
 void set(DeploymentInfo di, java.lang.Object primKey, java.lang.Object securityIdentity)
           
 void setCurrentOperation(byte op)
           
 void setDeploymentInfo(DeploymentInfo info)
           
 void setPrimaryKey(java.lang.Object primKey)
           
 void setSecurityIdentity(java.lang.Object identity)
           
static void setThreadContext(ThreadContext tc)
           
 void setUnspecified(java.lang.Object obj)
           
 boolean valid()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadStorage

protected static final FastThreadLocal threadStorage
TODO: Add comment


implClass

protected static java.lang.Class implClass
TODO: Add comment


valid

protected boolean valid
TODO: Add comment


deploymentInfo

protected DeploymentInfo deploymentInfo
TODO: Add comment


primaryKey

protected java.lang.Object primaryKey
TODO: Add comment


currentOperation

protected byte currentOperation
TODO: Add comment


securityIdentity

protected java.lang.Object securityIdentity
TODO: Add comment


unspecified

protected java.lang.Object unspecified
Unspecified is any object that a customer container may want to attach to the current thread context. (e.g. CastorCMP11_EntityContainer attaches a JDO Database object to the thread.

Constructor Detail

ThreadContext

public ThreadContext()
Method Detail

newThreadContext

protected static ThreadContext newThreadContext()

isValid

public static boolean isValid()

makeInvalid

protected void makeInvalid()

invalidate

public static void invalidate()

setThreadContext

public static void setThreadContext(ThreadContext tc)

getThreadContext

public static ThreadContext getThreadContext()

getCurrentOperation

public byte getCurrentOperation()

getPrimaryKey

public java.lang.Object getPrimaryKey()

getDeploymentInfo

public DeploymentInfo getDeploymentInfo()

getSecurityIdentity

public java.lang.Object getSecurityIdentity()

getUnspecified

public java.lang.Object getUnspecified()

set

public void set(DeploymentInfo di,
                java.lang.Object primKey,
                java.lang.Object securityIdentity)

setCurrentOperation

public void setCurrentOperation(byte op)

setPrimaryKey

public void setPrimaryKey(java.lang.Object primKey)

setSecurityIdentity

public void setSecurityIdentity(java.lang.Object identity)

setDeploymentInfo

public void setDeploymentInfo(DeploymentInfo info)

setUnspecified

public void setUnspecified(java.lang.Object obj)

valid

public boolean valid()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.