Class AppContext


  • public class AppContext
    extends java.lang.Object
    This class provides application-wide access to the Spring ApplicationContext. The ApplicationContext is injected by the class "ApplicationContextProvider".
    Author:
    Siegfried Bolz
    • Constructor Summary

      Constructors 
      Constructor Description
      AppContext()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.springframework.context.ApplicationContext getApplicationContext()
      Get access to the Spring ApplicationContext from everywhere in your Application.
      static void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
      Injected from the class "ApplicationContextProvider" which is automatically loaded during Spring-Initialization.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AppContext

        public AppContext()
    • Method Detail

      • setApplicationContext

        public static void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Injected from the class "ApplicationContextProvider" which is automatically loaded during Spring-Initialization.
        Parameters:
        applicationContext - the new application context
      • getApplicationContext

        public static org.springframework.context.ApplicationContext getApplicationContext()
        Get access to the Spring ApplicationContext from everywhere in your Application.
        Returns:
        the application context