Class SpringContextHolder

java.lang.Object
org.alfresco.rad.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 Details

    • SpringContextHolder

      public SpringContextHolder()
      Default constructor.
  • Method Details

    • 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()