diff options
author | Vitaly Takmazov | 2016-08-08 11:17:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-08-08 11:17:45 +0300 |
commit | 32111158ba5fd2481511cc2b5f09f921a1463bc1 (patch) | |
tree | 7efbb442155a12d6af2e29b746c1700edb982f39 /juick-ws/src/main/java/com/juick/ws/XMPPConnection.java | |
parent | 7ac5b7d2a20176587f6adec6ac1f77ca43032ec0 (diff) |
juick-ws: fix Environment injection
Diffstat (limited to 'juick-ws/src/main/java/com/juick/ws/XMPPConnection.java')
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/XMPPConnection.java | 5 |
1 files changed, 2 insertions, 3 deletions
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 a9bab327..24041eeb 100644 --- a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java +++ b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java @@ -33,14 +33,13 @@ public class XMPPConnection implements JuickComponent, Stream.StreamListener, Me private static final Logger logger = Logger.getLogger(XMPPConnection.class.getName()); @Inject JdbcTemplate sql; - @Inject - Environment env; Stream xmpp; String xmppPassword; MessageSerializer ms; WebsocketComponent wsHandler; - public XMPPConnection() { + @Inject + public XMPPConnection(Environment env) { xmppPassword = env.getProperty("xmpp_password"); ms = new MessageSerializer(); try { |