Package org.alfresco.rad
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 Summary
Constructors Constructor Description SpringContextHolder()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.ApplicationContextgetApplicationContext()static SpringContextHolderInstance()Return the singleton instancevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
-