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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContextstatic SpringContextHolderInstance()Return the singleton instancevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
SpringContextHolder
public SpringContextHolder()Default constructor.
-
-
Method Details
-
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()
-