Java org.springframework.web.context.support WebApplicationContextUtils fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.context.support WebApplicationContextUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.context.support WebApplicationContextUtils.

The text is from its open source code.

Method

WebApplicationContextfindWebApplicationContext(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).
WebApplicationContextgetRequiredWebApplicationContext(ServletContext sc)
Find the root WebApplicationContext for this web app, typically loaded via org.springframework.web.context.ContextLoaderListener .
WebApplicationContextgetWebApplicationContext(ServletContext sc, String attrName)
Find a custom WebApplicationContext for this web app.
WebApplicationContextgetWebApplicationContext(ServletContext sc)
Find the root WebApplicationContext for this web app, typically loaded via org.springframework.web.context.ContextLoaderListener .
voidinitServletPropertySources(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.
voidinitServletPropertySources(MutablePropertySources propertySources, ServletContext servletContext)
Convenient variant of #initServletPropertySources(MutablePropertySources,ServletContext,ServletConfig) that always provides null for the ServletConfig parameter.
voidregisterEnvironmentBeans(ConfigurableListableBeanFactory bf, @Nullable ServletContext sc)
Register web-specific environment beans ("contextParameters", "contextAttributes") with the given BeanFactory, as used by the WebApplicationContext.
voidregisterWebApplicationScopes(ConfigurableListableBeanFactory beanFactory)
Register web-specific scopes ("request", "session", "globalSession") with the given BeanFactory, as used by the WebApplicationContext.
voidregisterWebApplicationScopes(ConfigurableListableBeanFactory beanFactory, @Nullable ServletContext sc)
Register web-specific scopes ("request", "session", "globalSession", "application") with the given BeanFactory, as used by the WebApplicationContext.