Class SpringContextSingleton
- java.lang.Object
-
- org.fcrepo.http.commons.test.util.SpringContextSingleton
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SpringContextSingleton extends Object implements org.springframework.context.ApplicationContextAware
Retrieves the application context in which it is configured, for testing purposes only.- Since:
- September 19, 2014
- Author:
- Gregory Jansen
-
-
Constructor Summary
Constructors Constructor Description SpringContextSingleton()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.springframework.context.ApplicationContextgetApplicationContext()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Constructor Detail
-
SpringContextSingleton
public SpringContextSingleton()
-
-
Method Detail
-
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 static org.springframework.context.ApplicationContext getApplicationContext()
-
-