aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-19 16:26:05 +0300
committerGravatar Vitaly Takmazov2016-07-19 16:26:05 +0300
commit507db78d7e16dddf6c1f798b131ac389f685d5df (patch)
tree0a7fa26d8885c85254a5906b31ccd0e1b77ef62b /juick-ws/src/main/java
parent34d1411d80ce18807448e97ce21062122a9afaae (diff)
juick-ws: WebsocketComponent is singleton
Diffstat (limited to 'juick-ws/src/main/java')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
index e87b96a5..78b946ed 100644
--- a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
+++ b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
@@ -13,6 +13,7 @@ import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.TextWebSocketHandler;
import javax.inject.Inject;
+import javax.inject.Singleton;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
@@ -25,6 +26,7 @@ import java.util.logging.Logger;
* Created by vitalyster on 28.06.2016.
*/
@Component
+@Singleton
public class WebsocketComponent extends TextWebSocketHandler {
@Inject