From 007951db3ae9f9ba89a726960b0ef1639d63f3df Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 21 Aug 2017 12:52:40 +0300 Subject: ws: cleanup components initialization --- .../com/juick/ws/configuration/WebsocketConfiguration.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'juick-ws/src/main/java/com/juick/ws/configuration') diff --git a/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java b/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java index 21c013e9..a2c2d827 100644 --- a/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java +++ b/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java @@ -20,9 +20,7 @@ package com.juick.ws.configuration; import com.juick.server.configuration.BaseWebConfiguration; import com.juick.server.protocol.JuickProtocol; import com.juick.ws.WebsocketComponent; -import com.juick.ws.XMPPConnection; import org.springframework.context.annotation.*; -import org.springframework.core.env.Environment; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; import org.springframework.web.socket.config.annotation.EnableWebSocket; @@ -31,8 +29,6 @@ import org.springframework.web.socket.config.annotation.WebSocketConfigurer; import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; -import javax.inject.Inject; - /** * Created by aalexeev on 11/24/16. */ @@ -43,18 +39,12 @@ import javax.inject.Inject; @PropertySource("classpath:juick.conf") @Import(BaseWebConfiguration.class) class WebsocketConfiguration extends WebMvcConfigurationSupport implements WebSocketConfigurer { - @Inject - private Environment env; @Bean public WebsocketComponent wsHandler() { return new WebsocketComponent(); } - @Bean - public XMPPConnection ws() { - return new XMPPConnection(env, wsHandler()); - } @Bean public JuickProtocol protocol() { return new JuickProtocol("https://juick.com/"); -- cgit v1.2.3