public class ThreadContext
extends java.lang.Object
Constructor and Description |
---|
ThreadContext(BeanContext beanContext,
java.lang.Object primaryKey) |
ThreadContext(BeanContext beanContext,
java.lang.Object primaryKey,
Operation operation) |
ThreadContext(ThreadContext that) |
public ThreadContext(BeanContext beanContext, java.lang.Object primaryKey)
public ThreadContext(BeanContext beanContext, java.lang.Object primaryKey, Operation operation)
public ThreadContext(ThreadContext that)
public static ThreadContext getThreadContext()
public static ThreadContext clear()
public static ThreadContext enter(ThreadContext newContext)
public static void exit(ThreadContext oldContext)
public static void initAsynchronousCancelled(java.util.concurrent.atomic.AtomicBoolean initializeValue)
public static boolean isAsynchronousCancelled()
public static void removeAsynchronousCancelled()
public static void addThreadContextListener(ThreadContextListener listener)
public static void removeThreadContextListener(ThreadContextListener listener)
public BeanContext getBeanContext()
public java.lang.Object getPrimaryKey()
public Operation getCurrentOperation()
public void setCurrentOperation(Operation operation)
public java.lang.Class getInvokedInterface()
public void setInvokedInterface(java.lang.Class invokedInterface)
public TransactionPolicy getTransactionPolicy()
public void setTransactionPolicy(TransactionPolicy transactionPolicy)
public BaseContext.State[] getCurrentAllowedStates()
public BaseContext.State[] setCurrentAllowedStates(BaseContext.State[] newAllowedStates)
public <T> T get(java.lang.Class<T> type)
public <T> T set(java.lang.Class<T> type, T value)
public <T> T remove(java.lang.Class<T> type)
public boolean isDiscardInstance()
public void setDiscardInstance(boolean discardInstance)
public java.lang.String toString()
toString
in class java.lang.Object