All Implemented Interfaces:
ApplicationContext
All Known Implementing Classes:
AbstractRefreshablePortletApplicationContext, XmlPortletApplicationContext, XmlWebApplicationContext, GenericWebApplicationContext, AbstractRefreshableWebApplicationContext, StaticWebApplicationContext, ConfigurablePortletApplicationContext, StaticPortletApplicationContext, ConfigurableWebApplicationContext
This interface adds a getServletContext method to the generic ApplicationContext interface, and defines a well-known application attribute name that the root context must be bound to in the bootstrap process.
Like generic application contexts, web application contexts are hierarchical. There is a single root context per application, while each servlet in the application (including a dispatcher servlet in the MVC framework) has its own child context.
In addition to standard application context lifecycle capabilities, WebApplicationContext implementations need to detect ServletContextAware beans and invoke the setServletContext method accordingly.
Rod - JohnsonJuergen - HoellerJanuary - 19, 2001| Field Summary | ||
|---|---|---|
| String | ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE | Context attribute to bind root WebApplicationContext to on successful startup.
Note: If the startup of the root context fails, this attribute can contain an exception or error as value. Use WebApplicationContextUtils for convenient lookup of the root WebApplicationContext.
|
| String | SCOPE_REQUEST | Scope identifier for request scope: "request". Supported in addition to the standard scopes "singleton" and "prototype". |
| String | SCOPE_SESSION | Scope identifier for session scope: "session". Supported in addition to the standard scopes "singleton" and "prototype". |
| String | SCOPE_GLOBAL_SESSION | Scope identifier for global session scope: "globalSession". Supported in addition to the standard scopes "singleton" and "prototype". |
| Method from org.springframework.web.context.WebApplicationContext Summary: |
|---|
| getServletContext |
| Method from org.springframework.web.context.WebApplicationContext Detail: |
|---|
|