Class ThreadContextDescriptor


  • public class ThreadContextDescriptor
    extends Object
    • Constructor Detail

      • ThreadContextDescriptor

        public ThreadContextDescriptor()
    • Method Detail

      • getOldClassLoader

        public ClassLoader getOldClassLoader()
      • setOldClassLoader

        public void setOldClassLoader​(ClassLoader oldClassLoader)
      • setOldMessageContext

        public void setOldMessageContext​(MessageContext oldMessageContext)
      • 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