aboutsummaryrefslogtreecommitdiff
path: root/juick-ws
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-08 16:36:52 +0300
committerGravatar Vitaly Takmazov2016-11-08 17:45:40 +0300
commit7270411d55c154e42c942caeaf4d4b942d72dea2 (patch)
treec102da1c5265d8eed69c3441ccdbb4c953a983ba /juick-ws
parent40c1a196d019fbaf3dd8f0d8f6d1bdc8225bb7a0 (diff)
ws: fix injection
Diffstat (limited to 'juick-ws')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/StatusController.java2
-rw-r--r--juick-ws/src/main/java/com/juick/ws/XMPPConnection.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/StatusController.java b/juick-ws/src/main/java/com/juick/ws/StatusController.java
index 216089b4..f7e80106 100644
--- a/juick-ws/src/main/java/com/juick/ws/StatusController.java
+++ b/juick-ws/src/main/java/com/juick/ws/StatusController.java
@@ -16,6 +16,8 @@ import javax.inject.Inject;
public class StatusController {
@Inject
WebsocketComponent wsHandler;
+ @Inject
+ XMPPConnection ws;
@RequestMapping(method = RequestMethod.GET, headers = "Connection!=upgrade", value = "/")
public ModelAndView status() {
diff --git a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
index caeb5b21..0f2f75f6 100644
--- a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
+++ b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
@@ -36,6 +36,7 @@ public class XMPPConnection implements Stream.StreamListener, Message.MessageLis
Stream xmpp;
String xmppPassword;
MessageSerializer ms;
+ @Inject
WebsocketComponent wsHandler;
@Inject