Java Code Examples for org.springframework.web.context.WebApplicationContext#SCOPE_REQUEST

The following examples show how to use org.springframework.web.context.WebApplicationContext#SCOPE_REQUEST . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApacheEnterpriseManagerWebConfig.java    From jwala with Apache License 2.0 4 votes vote down vote up
@Bean
@Scope(value = WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS)
JavaScriptVariableSource loginStatusSource() {
    return new LoginStatusSource(request);
}
 
Example 2
Source File: RestConfiguration.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Create factory bean for {@link HttpServletResponse}.
 */
@Bean
@Scope(value = WebApplicationContext.SCOPE_REQUEST)
RequestResponseContextHolder requestResponseContextHolder() {
    return new RequestResponseContextHolder();
}
 
Example 3
Source File: ScopesConfig.java    From tutorials with MIT License 4 votes vote down vote up
@Bean
@Scope(value = WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS)
public HelloMessageGenerator requestScopedBean() {
    return new HelloMessageGenerator();
}