Package org.apache.axis2.classloader
Class ThreadContextDescriptor
- java.lang.Object
-
- org.apache.axis2.classloader.ThreadContextDescriptor
-
public class ThreadContextDescriptor extends Object
-
-
Constructor Summary
Constructors Constructor Description ThreadContextDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getOldClassLoader()
MessageContext
getOldMessageContext()
void
setOldClassLoader(ClassLoader oldClassLoader)
void
setOldMessageContext(MessageContext oldMessageContext)
static ThreadContextDescriptor
setThreadContext(MessageContext msgContext)
Several pieces of information need to be available to the service implementation class.static ThreadContextDescriptor
setThreadContext(AxisService service)
-
-
-
Method Detail
-
getOldClassLoader
public ClassLoader getOldClassLoader()
-
setOldClassLoader
public void setOldClassLoader(ClassLoader oldClassLoader)
-
getOldMessageContext
public MessageContext getOldMessageContext()
-
setOldMessageContext
public void setOldMessageContext(MessageContext oldMessageContext)
-
setThreadContext
public static ThreadContextDescriptor setThreadContext(AxisService service)
-
setThreadContext
public static ThreadContextDescriptor setThreadContext(MessageContext msgContext)
Several pieces of information need to be available to the service implementation class. For one, the ThreadContextClassLoader needs to be correct, and for another we need to give the service code access to the MessageContext (getCurrentContext()). So we toss these things in TLS.- Parameters:
msgContext
- the current MessageContext- Returns:
- a ThreadContextDescriptor containing the old values
-
-