@Bean public static CustomScopeConfigurer webSocketScopeConfigurer() { CustomScopeConfigurer configurer = new CustomScopeConfigurer(); configurer.addScope("websocket", new SimpSessionScope()); return configurer; }
@Bean public static CustomScopeConfigurer customScope() { CustomScopeConfigurer configurer = new CustomScopeConfigurer(); configurer.addScope(CustomerScope.CUSTOMER_SCOPE_NAME, new CustomerScope()); return configurer; }
@Bean @ConditionalOnProperty(value = "joinfaces.view-scope.enabled", havingValue = "true", matchIfMissing = true) public static CustomScopeConfigurer viewScopeConfigurer() { CustomScopeConfigurer customScopeConfigurer = new CustomScopeConfigurer(); customScopeConfigurer.addScope(ViewScope.SCOPE_VIEW, new ViewScope()); return customScopeConfigurer; }
@Bean public static CustomScopeConfigurer webSocketScopeConfigurer() { CustomScopeConfigurer configurer = new CustomScopeConfigurer(); configurer.addScope("websocket", new SimpSessionScope()); return configurer; }
@Bean(name = "customScopeConfigurer") public static CustomScopeConfigurer createClientScope() { final CustomScopeConfigurer configurer = new CustomScopeConfigurer(); configurer.addScope(ClientScopeImpl.CLIENT_SCOPE, new ClientScopeImpl()); return configurer; } }
@Bean(name = "customScopeConfigurer") public static CustomScopeConfigurer createClientScope() { final CustomScopeConfigurer configurer = new CustomScopeConfigurer(); configurer.addScope(ClientScopeImpl.CLIENT_SCOPE, new ClientScopeImpl()); return configurer; }
@Bean public static CustomScopeConfigurer windowScopeConfigurer() { CustomScopeConfigurer windowScopeConfigurer = new CustomScopeConfigurer(); windowScopeConfigurer.addScope(WindowScopeManager.ScopeName, new WindowScope()); return windowScopeConfigurer; }
@Bean public static CustomScopeConfigurer webSocketScopeConfigurer() { CustomScopeConfigurer configurer = new CustomScopeConfigurer(); configurer.addScope("websocket", new SimpSessionScope()); return configurer; }
@Bean public static CustomScopeConfigurer viewScopeConfigurer() { CustomScopeConfigurer customScopeConfigurer = new CustomScopeConfigurer(); customScopeConfigurer.addScope(ViewScope.SCOPE_VIEW, new ViewScope()); return customScopeConfigurer; } }
@Bean public static CustomScopeConfigurer webSocketScopeConfigurer( ConfigurableListableBeanFactory beanFactory) { beanFactory.registerResolvableDependency(WebSocketSession.class, new WampSessionScope.WebSocketSessionObjectFactory()); beanFactory.registerResolvableDependency(WampSession.class, new WampSessionScope.WampSessionObjectFactory()); CustomScopeConfigurer configurer = new CustomScopeConfigurer(); configurer.addScope("wampsession", new WampSessionScope()); return configurer; }
@Bean public static CustomScopeConfigurer testScopeConfigurer() { CustomScopeConfigurer customScopeConfigurer = new CustomScopeConfigurer(); customScopeConfigurer.addScope("test", new TestScope()); return customScopeConfigurer; }