org.apache.openejb.core
Class ThreadContext

java.lang.Object
  extended by org.apache.openejb.core.ThreadContext

public class ThreadContext
extends Object


Constructor Summary
ThreadContext(CoreDeploymentInfo deploymentInfo, Object primaryKey)
           
ThreadContext(CoreDeploymentInfo deploymentInfo, Object primaryKey, Operation operation)
           
ThreadContext(ThreadContext that)
           
 
Method Summary
static void addThreadContextListener(ThreadContextListener listener)
           
static ThreadContext enter(ThreadContext newContext)
           
static void exit(ThreadContext oldContext)
           
<T> T
get(Class<T> type)
           
 BaseContext.State[] getCurrentAllowedStates()
           
 Operation getCurrentOperation()
           
 CoreDeploymentInfo getDeploymentInfo()
           
 Class getInvokedInterface()
           
 Object getPrimaryKey()
           
static ThreadContext getThreadContext()
           
 TransactionPolicy getTransactionPolicy()
           
 boolean isDiscardInstance()
           
static void removeThreadContextListener(ThreadContextListener listener)
           
<T> T
set(Class<T> type, T value)
           
 BaseContext.State[] setCurrentAllowedStates(BaseContext.State[] newAllowedStates)
           
 void setCurrentOperation(Operation operation)
           
 void setDiscardInstance(boolean discardInstance)
           
 void setInvokedInterface(Class invokedInterface)
           
 void setTransactionPolicy(TransactionPolicy transactionPolicy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadContext

public ThreadContext(CoreDeploymentInfo deploymentInfo,
                     Object primaryKey)

ThreadContext

public ThreadContext(CoreDeploymentInfo deploymentInfo,
                     Object primaryKey,
                     Operation operation)

ThreadContext

public ThreadContext(ThreadContext that)
Method Detail

getThreadContext

public static ThreadContext getThreadContext()

enter

public static ThreadContext enter(ThreadContext newContext)

exit

public static void exit(ThreadContext oldContext)

addThreadContextListener

public static void addThreadContextListener(ThreadContextListener listener)

removeThreadContextListener

public static void removeThreadContextListener(ThreadContextListener listener)

getDeploymentInfo

public CoreDeploymentInfo getDeploymentInfo()

getPrimaryKey

public Object getPrimaryKey()

getCurrentOperation

public Operation getCurrentOperation()

setCurrentOperation

public void setCurrentOperation(Operation operation)

getInvokedInterface

public Class getInvokedInterface()

setInvokedInterface

public void setInvokedInterface(Class invokedInterface)

getTransactionPolicy

public TransactionPolicy getTransactionPolicy()

setTransactionPolicy

public void setTransactionPolicy(TransactionPolicy transactionPolicy)

getCurrentAllowedStates

public BaseContext.State[] getCurrentAllowedStates()

setCurrentAllowedStates

public BaseContext.State[] setCurrentAllowedStates(BaseContext.State[] newAllowedStates)

get

public <T> T get(Class<T> type)

set

public <T> T set(Class<T> type,
                 T value)

isDiscardInstance

public boolean isDiscardInstance()

setDiscardInstance

public void setDiscardInstance(boolean discardInstance)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.