Search in sources :

Example 1 with CustomScopeConfigurer

use of org.springframework.beans.factory.config.CustomScopeConfigurer in project spring-framework by spring-projects.

the class WebSocketMessageBrokerConfigurationSupport method webSocketScopeConfigurer.

@Bean
public static CustomScopeConfigurer webSocketScopeConfigurer() {
    CustomScopeConfigurer configurer = new CustomScopeConfigurer();
    configurer.addScope("websocket", new SimpSessionScope());
    return configurer;
}
Also used : SimpSessionScope(org.springframework.messaging.simp.SimpSessionScope) CustomScopeConfigurer(org.springframework.beans.factory.config.CustomScopeConfigurer) Bean(org.springframework.context.annotation.Bean)

Aggregations

CustomScopeConfigurer (org.springframework.beans.factory.config.CustomScopeConfigurer)1 Bean (org.springframework.context.annotation.Bean)1 SimpSessionScope (org.springframework.messaging.simp.SimpSessionScope)1