Package org.springframework.web.context.support
@NonNullApi
@NonNullFields
package org.springframework.web.context.support
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.-
ClassDescription
AbstractRefreshableApplicationContext
subclass which implements theConfigurableWebApplicationContext
interface for web environments.WebApplicationContext
implementation which accepts component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
classes and JSR-330 compliant classes usingjakarta.inject
annotations.HttpServletRequest decorator that makes all Spring beans in a given WebApplicationContext accessible as request attributes, through lazy checking once an attribute gets accessed.Subclass ofGenericApplicationContext
, suitable for web environments.WebApplicationContext
implementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader
.Simple HttpServlet that delegates to anHttpRequestHandler
bean defined in Spring's root web application context.Event raised when a request is handled within an ApplicationContext.PropertySource
that reads init parameters from aServletConfig
object.Exporter that takes Spring-defined objects and exposes them as ServletContext attributes.FactoryBean
that fetches a specific, existing ServletContext attribute.BeanPostProcessor
implementation that passes the ServletContext to beans that implement theServletContextAware
interface.FactoryBean
that retrieves a specific ServletContext init parameter (that is, a "context-param" defined inweb.xml
).PropertySource
that reads init parameters from aServletContext
object.Resource
implementation forServletContext
resources, interpreting relative paths within the web application root directory.ResourceLoader implementation that resolves paths as ServletContext resources, for use outside a WebApplicationContext (for example, in an HttpServletBean or GenericFilterBean subclass).ServletContext-aware subclass ofPathMatchingResourcePatternResolver
, able to find matching resources below the web application root directory viaServletContext.getResourcePaths(java.lang.String)
.Scope
wrapper for a ServletContext, i.e.Servlet-specific subclass of RequestHandledEvent, adding servlet-specific context information.Convenient base class for self-autowiring classes that gets constructed within a Spring-based web application.Environment
implementation to be used byServlet
-based web applications.StaticWebApplicationContext
implementation for testing.Convenience methods for retrieving the rootWebApplicationContext
for a givenServletContext
.Convenient superclass for application objects running in aWebApplicationContext
.WebApplicationContext
implementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
.