org.broadleafcommerce.common.util
Class ApplicationContextHolder
java.lang.Object
org.broadleafcommerce.common.util.ApplicationContextHolder
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
@Component(value="blApplicationContextHolder")
public class ApplicationContextHolder
- extends Object
- implements org.springframework.context.ApplicationContextAware
Convenient class to hold the Spring application context. Note that this holds the root application context
as opposed to an individual servlet context.
- Author:
- Phillip Verheyden (phillipuniverse)
|
Field Summary |
protected static org.springframework.context.ApplicationContext |
context
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected static org.springframework.context.ApplicationContext context
ApplicationContextHolder
public ApplicationContextHolder()
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()
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
Copyright © 2013. All Rights Reserved.