Class SpringContextProvider


  • public class SpringContextProvider
    extends Object
    Provide a thread local Spring ApplicationContext.
    • Constructor Detail

      • SpringContextProvider

        public SpringContextProvider()
    • Method Detail

      • getThreadApplicationContext

        public static org.springframework.context.ApplicationContext getThreadApplicationContext()
        Returns:
        the thread local Spring Application Context.
      • setThreadApplicationContext

        public static void setThreadApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Parameters:
        applicationContext - the thread local Spring Application Context to set
      • removeThreadApplicationContext

        public static void removeThreadApplicationContext()
        Remote the thread local application context variable.