Class ApplicationContextProvider

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

    @Service
    public class ApplicationContextProvider
    extends Object
    implements org.springframework.context.ApplicationContextAware
    Application context provided. USed by the objects no created by Spring.
    Author:
    jabad
    • Constructor Detail

      • ApplicationContextProvider

        public ApplicationContextProvider()
    • Method Detail

      • getApplicationContext

        public static org.springframework.context.ApplicationContext getApplicationContext()
        Get application context.
        Returns:
        application context
      • setApplicationContext

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