aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-08-08 11:17:45 +0300
committerGravatar Vitaly Takmazov2016-08-08 11:17:45 +0300
commit32111158ba5fd2481511cc2b5f09f921a1463bc1 (patch)
tree7efbb442155a12d6af2e29b746c1700edb982f39 /juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java
parent7ac5b7d2a20176587f6adec6ac1f77ca43032ec0 (diff)
juick-ws: fix Environment injection
Diffstat (limited to 'juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java b/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java
index fb67e5a2..6ce2482d 100644
--- a/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java
+++ b/juick-ws/src/main/java/com/juick/ws/components/XMPPComponent.java
@@ -59,10 +59,9 @@ public class XMPPComponent implements JuickComponent, DisposableBean, Stream.Str
private final List<CacheEntry> outCache = Collections.synchronizedList(new ArrayList<>());
private JdbcTemplate sql;
final public HashMap<String, StanzaChild> childParsers = new HashMap<>();
- @Inject
- Environment env;
- public XMPPComponent() {
+ @Inject
+ public XMPPComponent(Environment env) {
logger.info("component initialized");
try {
HOSTNAME = env.getProperty("hostname");