Class SpringContextSingleton

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class SpringContextSingleton
    extends Object
    implements org.springframework.context.ApplicationContextAware
    Retrieves the application context in which it is configured, for testing purposes only.
    Since:
    September 19, 2014
    Author:
    Gregory Jansen
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • getApplicationContext

        public static org.springframework.context.ApplicationContext getApplicationContext()