spring-framework / org.springframework.web.context.support / WebApplicationContextUtils / registerEnvironmentBeans

registerEnvironmentBeans

open static fun registerEnvironmentBeans(bf: ConfigurableListableBeanFactory, @Nullable sc: ServletContext): Unit

Register web-specific environment beans ("contextParameters", "contextAttributes") with the given BeanFactory, as used by the WebApplicationContext.

Parameters

bf - the BeanFactory to configure

sc - the ServletContext that we're running within

open static fun registerEnvironmentBeans(bf: ConfigurableListableBeanFactory, @Nullable servletContext: ServletContext, @Nullable servletConfig: ServletConfig): Unit

Register web-specific environment beans ("contextParameters", "contextAttributes") with the given BeanFactory, as used by the WebApplicationContext.

Parameters

bf - the BeanFactory to configure

servletContext - the ServletContext that we're running within

servletConfig - the ServletConfig of the containing Portlet