org.springframework.web.context.support |
Classes supporting the org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes.
|
Java Source File Name | Type | Comment |
AbstractRefreshableWebApplicationContext.java | Class | org.springframework.context.support.AbstractRefreshableApplicationContext subclass which implements the
org.springframework.web.context.ConfigurableWebApplicationContext interface for web environments. |
ContextExposingHttpServletRequest.java | Class | HttpServletRequest decorator that makes all Spring beans in a
given WebApplicationContext accessible as request attributes,
through lazy checking once an attribute gets accessed. |
GenericWebApplicationContext.java | Class | Subclass of GenericApplicationContext, suitable for web environments.
Implements the WebApplicationContext interface, but not ConfigurableWebApplicationContext,
as it is not intended for declarative setup in web.xml . |
HttpRequestHandlerServlet.java | Class | Simple HttpServlet that delegates to an HttpRequestHandler bean defined
in Spring's root web application context. |
PerformanceMonitorListener.java | Class | Listener that logs the response times of web requests. |
RequestHandledEvent.java | Class | Event raised when a request is handled within an ApplicationContext.
Supported by Spring's own FrameworkServlet (through a specific
ServletRequestHandledEvent subclass), but can also be raised by any
other web component. |
ServletContextAttributeExporter.java | Class | Exporter that takes Spring-defined objects and exposes them as
ServletContext attributes. |
ServletContextAttributeFactoryBean.java | Class | FactoryBean that fetches a specific, existing ServletContext attribute.
Exposes that ServletContext attribute when used as bean reference,
effectively making it available as named Spring bean instance.
Intended to link in ServletContext attributes that exist before
the startup of the Spring application context. |
ServletContextAwareProcessor.java | Class | org.springframework.beans.factory.config.BeanPostProcessor implementation that passes the ServletContext to beans that implement
the
ServletContextAware interface.
Web application contexts will automatically register this with their
underlying bean factory. |
ServletContextFactoryBean.java | Class | Simple FactoryBean that exposes the ServletContext for bean references.
Can be used as alternative to implementing the ServletContextAware
callback interface. |
ServletContextParameterFactoryBean.java | Class | FactoryBean that retrieves a specific ServletContext init parameter
(that is, a "context-param" defined in web.xml ). |
ServletContextPropertyPlaceholderConfigurer.java | Class | Subclass of PropertyPlaceholderConfigurer that resolves placeholders as
ServletContext init parameters (that is, web.xml context-param
entries).
Can be combined with "locations" and/or "properties" values in addition
to web.xml context-params. |
ServletContextResource.java | Class | org.springframework.core.io.Resource implementation for
javax.servlet.ServletContext resources, interpreting
relative paths within the web application root directory. |
ServletContextResourceLoader.java | Class | ResourceLoader implementation that resolves paths as ServletContext
resources, for use outside a WebApplicationContext (for example,
in a HttpServletBean or GenericFilterBean subclass). |
ServletContextResourcePatternResolver.java | Class | ServletContext-aware subclass of
PathMatchingResourcePatternResolver ,
able to find matching resources below the web application root directory
via Servlet 2.3's ServletContext.getResourcePaths . |
ServletRequestHandledEvent.java | Class | Servlet-specific subclass of RequestHandledEvent,
adding servlet-specific context information. |
StaticWebApplicationContext.java | Class | Static
org.springframework.web.context.WebApplicationContext implementation for testing. |
WebApplicationContextUtils.java | Class | Convenience methods to retrieve the root WebApplicationContext for a given
ServletContext. |
WebApplicationObjectSupport.java | Class | Convenient superclass for application objects running in a WebApplicationContext. |
XmlWebApplicationContext.java | Class | org.springframework.web.context.WebApplicationContext implementation
which takes its configuration from XML documents, understood by an
org.springframework.beans.factory.xml.XmlBeanDefinitionReader .
This is essentially the equivalent of
org.springframework.context.support.AbstractXmlApplicationContext for a web environment.
By default, the configuration will be taken from "/WEB-INF/applicationContext.xml"
for the root context, and "/WEB-INF/test-servlet.xml" for a context with the namespace
"test-servlet" (like for a DispatcherServlet instance with the servlet-name "test").
The config location defaults can be overridden via the "contextConfigLocation"
context-param of
org.springframework.web.context.ContextLoader and servlet
init-param of
org.springframework.web.servlet.FrameworkServlet . |