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