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

registerWebApplicationScopes

open static fun registerWebApplicationScopes(beanFactory: ConfigurableListableBeanFactory): Unit

Register web-specific scopes ("request", "session", "globalSession") with the given BeanFactory, as used by the WebApplicationContext.

Parameters

beanFactory - the BeanFactory to configure

open static fun registerWebApplicationScopes(beanFactory: ConfigurableListableBeanFactory, @Nullable sc: ServletContext): Unit

Register web-specific scopes ("request", "session", "globalSession", "application") with the given BeanFactory, as used by the WebApplicationContext.

Parameters

beanFactory - the BeanFactory to configure

sc - the ServletContext that we're running within