org.apache.openejb.core
Class ThreadContext
java.lang.Object
org.apache.openejb.core.ThreadContext
public class ThreadContext
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadContext
public ThreadContext(CoreDeploymentInfo deploymentInfo,
java.lang.Object primaryKey)
ThreadContext
public ThreadContext(CoreDeploymentInfo deploymentInfo,
java.lang.Object primaryKey,
Operation operation)
ThreadContext
public ThreadContext(ThreadContext that)
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 java.lang.Object getPrimaryKey()
getCurrentOperation
public Operation getCurrentOperation()
setCurrentOperation
public void setCurrentOperation(Operation operation)
getInvokedInterface
public java.lang.Class getInvokedInterface()
setInvokedInterface
public void setInvokedInterface(java.lang.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(java.lang.Class<T> type)
set
public <T> T set(java.lang.Class<T> type,
T value)
isDiscardInstance
public boolean isDiscardInstance()
setDiscardInstance
public void setDiscardInstance(boolean discardInstance)
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.