public class ThreadContext extends Object
| Constructor and Description |
|---|
ThreadContext(BeanContext beanContext,
Object primaryKey) |
ThreadContext(BeanContext beanContext,
Object primaryKey,
Operation operation) |
ThreadContext(ThreadContext that) |
public ThreadContext(BeanContext beanContext, Object primaryKey)
public ThreadContext(BeanContext beanContext, Object primaryKey, Operation operation)
public ThreadContext(ThreadContext that)
public static ThreadContext getThreadContext()
public static ThreadContext enter(ThreadContext newContext)
public static void exit(ThreadContext oldContext)
public static void initAsynchronousCancelled(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 Object getPrimaryKey()
public Operation getCurrentOperation()
public void setCurrentOperation(Operation operation)
public Class getInvokedInterface()
public void setInvokedInterface(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(Class<T> type)
public <T> T set(Class<T> type, T value)
public <T> T remove(Class<T> type)
public boolean isDiscardInstance()
public void setDiscardInstance(boolean discardInstance)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.