Class SpringContextHolder

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

    public class SpringContextHolder
    extends Object
    implements org.springframework.context.ApplicationContextAware
    This Spring bean is aware of the application context in which it is initialized.
    Since:
    3.0
    Author:
    martin.bergljung@alfresco.com
    • Constructor Detail

      • SpringContextHolder

        public SpringContextHolder()
        Default constructor.
    • Method Detail

      • Instance

        public static SpringContextHolder Instance()
        Return the singleton instance
        Returns:
        the singleton instance
      • 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 org.springframework.context.ApplicationContext getApplicationContext()