Class ApplicationContextProvider

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

    public class ApplicationContextProvider
    extends java.lang.Object
    implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean
    • Constructor Detail

      • ApplicationContextProvider

        public ApplicationContextProvider()
    • Method Detail

      • setApplicationContext

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

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
      • getApplicationContext

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