Class SpringContextProvider

java.lang.Object
com.avoka.fc.core.util.SpringContextProvider

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

    • SpringContextProvider

      public SpringContextProvider()
  • Method Details

    • 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.