aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/juick/ws/XMPPConnection.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/ws/XMPPConnection.java b/src/main/java/com/juick/ws/XMPPConnection.java
index 65008906..ae70d956 100644
--- a/src/main/java/com/juick/ws/XMPPConnection.java
+++ b/src/main/java/com/juick/ws/XMPPConnection.java
@@ -31,17 +31,17 @@ import java.util.stream.Collectors;
public class XMPPConnection implements Runnable, Stream.StreamListener, Message.MessageListener {
private static final Logger logger = Logger.getLogger(XMPPConnection.class.getName());
- @Inject
JdbcTemplate sql;
Stream xmpp;
String xmppPassword;
MessageSerializer ms;
- @Inject
WebsocketComponent ws;
ExecutorService xmppThreadService = Executors.newSingleThreadExecutor();
@Inject
- public XMPPConnection(Environment env) {
+ public XMPPConnection(Environment env, WebsocketComponent ws, JdbcTemplate sql) {
+ this.sql = sql;
+ this.ws = ws;
xmppPassword = env.getProperty("xmpp_password");
ms = new MessageSerializer();
xmppThreadService.submit(this);