程序包 org.springframework.web.context.support
Classes supporting the
org.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.类概要 类 说明 AbstractRefreshableWebApplicationContext AbstractRefreshableApplicationContext
subclass which implements theConfigurableWebApplicationContext
interface for web environments.AnnotationConfigWebApplicationContext WebApplicationContext
implementation which accepts annotated classes as input - in particular@Configuration
-annotated classes, but also plain@Component
classes and JSR-330 compliant classes usingjavax.inject
annotations.ContextExposingHttpServletRequest HttpServletRequest decorator that makes all Spring beans in a given WebApplicationContext accessible as request attributes, through lazy checking once an attribute gets accessed.GenericWebApplicationContext Subclass ofGenericApplicationContext
, suitable for web environments.GroovyWebApplicationContext WebApplicationContext
implementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader
.HttpRequestHandlerServlet Simple HttpServlet that delegates to anHttpRequestHandler
bean defined in Spring's root web application context.LiveBeansViewServlet Servlet variant ofLiveBeansView
's MBean exposure.RequestHandledEvent Event raised when a request is handled within an ApplicationContext.ServletConfigPropertySource PropertySource
that reads init parameters from aServletConfig
object.ServletContextAttributeExporter Exporter that takes Spring-defined objects and exposes them as ServletContext attributes.ServletContextAttributeFactoryBean FactoryBean
that fetches a specific, existing ServletContext attribute.ServletContextAwareProcessor BeanPostProcessor
implementation that passes the ServletContext to beans that implement theServletContextAware
interface.ServletContextLiveBeansView LiveBeansView
subclass which looks for all ApplicationContexts in the web application, as exposed in ServletContext attributes.ServletContextParameterFactoryBean FactoryBean
that retrieves a specific ServletContext init parameter (that is, a "context-param" defined inweb.xml
).ServletContextPropertySource PropertySource
that reads init parameters from aServletContext
object.ServletContextResource Resource
implementation forServletContext
resources, interpreting relative paths within the web application root directory.ServletContextResourceLoader ResourceLoader implementation that resolves paths as ServletContext resources, for use outside a WebApplicationContext (for example, in an HttpServletBean or GenericFilterBean subclass).ServletContextResourcePatternResolver ServletContext-aware subclass ofPathMatchingResourcePatternResolver
, able to find matching resources below the web application root directory viaServletContext.getResourcePaths(java.lang.String)
.ServletContextScope Scope
wrapper for a ServletContext, i.e. for global web application attributes.ServletRequestHandledEvent Servlet-specific subclass of RequestHandledEvent, adding servlet-specific context information.SpringBeanAutowiringSupport Convenient base class for self-autowiring classes that gets constructed within a Spring-based web application.StandardServletEnvironment Environment
implementation to be used byServlet
-based web applications.StaticWebApplicationContext StaticWebApplicationContext
implementation for testing.WebApplicationContextUtils Convenience methods for retrieving the rootWebApplicationContext
for a givenServletContext
.WebApplicationObjectSupport Convenient superclass for application objects running in aWebApplicationContext
.XmlWebApplicationContext WebApplicationContext
implementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
.