|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.spring.configurator.WebAppContextUtils
Utility class to manage hierarchical application contexts.
| Nested Class Summary | |
protected static class |
WebAppContextUtils.ContextInfo
Private bean keeping track of the class loader and web application context. |
| Field Summary | |
static String |
CONTAINER_REQUEST_ATTRIBUTE
The name of the request attribute containing the current bean factory. |
| Constructor Summary | |
WebAppContextUtils()
|
|
| Method Summary | |
static Object |
enteringContext(WebApplicationContext webAppContext)
Notify about entering this context. |
static WebApplicationContext |
getCurrentWebApplicationContext()
Get the current web application context. |
protected static WebApplicationContext |
getCurrentWebApplicationContext(RequestAttributes attributes)
Return the current web application context or if the attributes are null, the parent context. |
static void |
leavingContext(WebApplicationContext webAppContext,
Object handle)
Notify about leaving this context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String CONTAINER_REQUEST_ATTRIBUTE
| Constructor Detail |
public WebAppContextUtils()
| Method Detail |
public static WebApplicationContext getCurrentWebApplicationContext()
IllegalStateException - if no WebApplicationContext could not be foundprotected static WebApplicationContext getCurrentWebApplicationContext(RequestAttributes attributes)
attributes - The request attributes.
IllegalStateException - if no WebApplicationContext could not be foundpublic static Object enteringContext(WebApplicationContext webAppContext)
webAppContext - The current web application context.
leavingContext(WebApplicationContext, Object).
public static void leavingContext(WebApplicationContext webAppContext,
Object handle)
webAppContext - The current web application context.handle - The returned handle from enteringContext(WebApplicationContext).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||