org.broadleafcommerce.common.util
Class SpringAppContext
java.lang.Object
org.broadleafcommerce.common.util.SpringAppContext
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware
public class SpringAppContext
- extends Object
- implements org.springframework.context.ApplicationContextAware
Provides a means for classes that do not normally have access to
a servlet context or application context to be able to obtain
the current Spring ApplicationContext instance. This should be a last
resort, as it is unlikely this class is ever needed unless an
instance of ApplicationContext is required in a custom class
instantiated by third-party code.
- Author:
- jfischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringAppContext
public SpringAppContext()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext appContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2012. All Rights Reserved.