|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.config.spring.ApplicationContextUtil
public class ApplicationContextUtil
Contains utility methods for obtaining and setting Springs root WebApplicationContext from/to the applicationMap.
| Constructor Summary | |
|---|---|
ApplicationContextUtil()
|
|
| Method Summary | |
|---|---|
static Boolean |
containsApplicationContext(Map<String,Object> applicationMap)
Indicates if the given applicationMap contains Springs root WebApplicationContext. |
static ApplicationContext |
getApplicationContext(Map<String,Object> applicationMap)
Returns Springs root WebApplicationContext contained in the given applicationMap. |
static Boolean |
setApplicationContext(Map<String,Object> applicationMap,
ApplicationContext context)
Puts the specified ApplicationContext instance into the given Map
with the key WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE
if there is no ApplicationContext already mapped to that key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationContextUtil()
| Method Detail |
|---|
public static ApplicationContext getApplicationContext(Map<String,Object> applicationMap)
WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE.
applicationMap - the applicationMap (in a web application the wrapped ServletContext)
ConfigurationException - if the given applicationMap does not contain
the root ApplicationContext under the default key.public static Boolean containsApplicationContext(Map<String,Object> applicationMap)
WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE.
applicationMap - the applicationMap (in a web application the wrapped ServletContext) to examine
public static Boolean setApplicationContext(Map<String,Object> applicationMap,
ApplicationContext context)
ApplicationContext instance into the given Map
with the key WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE
if there is no ApplicationContext already mapped to that key.
applicationMap - the applicationMap (in a web application the wrapped ServletContext)context - the ApplicationContext to put into the Map
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||