程序包 org.springframework.web.context.support
Classes supporting the
org.springframework.web.context package, such as WebApplicationContext implementations and various utility classes.类概要 类 说明 AbstractRefreshableWebApplicationContext AbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments.AnnotationConfigWebApplicationContext WebApplicationContextimplementation which accepts component classes as input — in particular@Configuration-annotated classes, but also plain@Componentclasses and JSR-330 compliant classes usingjavax.injectannotations.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 WebApplicationContextimplementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader.HttpRequestHandlerServlet Simple HttpServlet that delegates to anHttpRequestHandlerbean 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 PropertySourcethat reads init parameters from aServletConfigobject.ServletContextAttributeExporter Exporter that takes Spring-defined objects and exposes them as ServletContext attributes.ServletContextAttributeFactoryBean FactoryBeanthat fetches a specific, existing ServletContext attribute.ServletContextAwareProcessor BeanPostProcessorimplementation that passes the ServletContext to beans that implement theServletContextAwareinterface.ServletContextLiveBeansView LiveBeansViewsubclass which looks for all ApplicationContexts in the web application, as exposed in ServletContext attributes.ServletContextParameterFactoryBean FactoryBeanthat retrieves a specific ServletContext init parameter (that is, a "context-param" defined inweb.xml).ServletContextPropertySource PropertySourcethat reads init parameters from aServletContextobject.ServletContextResource Resourceimplementation forServletContextresources, 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 Scopewrapper 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 Environmentimplementation to be used byServlet-based web applications.StaticWebApplicationContext StaticWebApplicationContextimplementation for testing.WebApplicationContextUtils Convenience methods for retrieving the rootWebApplicationContextfor a givenServletContext.WebApplicationObjectSupport Convenient superclass for application objects running in aWebApplicationContext.XmlWebApplicationContext WebApplicationContextimplementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader.