org.apache.openejb.core
Class ThreadContext
java.lang.Object
org.apache.openejb.core.ThreadContext
public class ThreadContext
- extends Object
ThreadContext
public ThreadContext(BeanContext beanContext,
Object primaryKey)
ThreadContext
public ThreadContext(BeanContext beanContext,
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)
initAsynchronousCancelled
public static void initAsynchronousCancelled(AtomicBoolean initializeValue)
isAsynchronousCancelled
public static boolean isAsynchronousCancelled()
removeAsynchronousCancelled
public static void removeAsynchronousCancelled()
addThreadContextListener
public static void addThreadContextListener(ThreadContextListener listener)
removeThreadContextListener
public static void removeThreadContextListener(ThreadContextListener listener)
getBeanContext
public BeanContext getBeanContext()
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)
remove
public <T> T remove(Class<T> type)
isDiscardInstance
public boolean isDiscardInstance()
setDiscardInstance
public void setDiscardInstance(boolean discardInstance)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.