Example usage for Java org.springframework.web.context.support WebApplicationContextUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
WebApplicationContext | findWebApplicationContext(ServletContext sc) Find a unique WebApplicationContext for this web app: either the root web app context (preferred) or a unique WebApplicationContext among the registered ServletContext attributes (typically coming from a single DispatcherServlet in the current web application). |
WebApplicationContext | getRequiredWebApplicationContext(ServletContext sc) Find the root WebApplicationContext for this web app, typically loaded via org.springframework.web.context.ContextLoaderListener . |
WebApplicationContext | getWebApplicationContext(ServletContext sc, String attrName) Find a custom WebApplicationContext for this web app. |
WebApplicationContext | getWebApplicationContext(ServletContext sc) Find the root WebApplicationContext for this web app, typically loaded via org.springframework.web.context.ContextLoaderListener . |
void | initServletPropertySources(MutablePropertySources sources, @Nullable ServletContext servletContext, @Nullable ServletConfig servletConfig) Replace Servlet -based StubPropertySource stub property sources with actual instances populated with the given servletContext and servletConfig objects. |
void | initServletPropertySources(MutablePropertySources propertySources, ServletContext servletContext) Convenient variant of #initServletPropertySources(MutablePropertySources,ServletContext,ServletConfig) that always provides null for the ServletConfig parameter. |
void | registerEnvironmentBeans(ConfigurableListableBeanFactory bf, @Nullable ServletContext sc) Register web-specific environment beans ("contextParameters", "contextAttributes") with the given BeanFactory, as used by the WebApplicationContext. |
void | registerWebApplicationScopes(ConfigurableListableBeanFactory beanFactory) Register web-specific scopes ("request", "session", "globalSession") with the given BeanFactory, as used by the WebApplicationContext. |
void | registerWebApplicationScopes(ConfigurableListableBeanFactory beanFactory, @Nullable ServletContext sc) Register web-specific scopes ("request", "session", "globalSession", "application") with the given BeanFactory, as used by the WebApplicationContext. |