aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-08-08 11:11:54 +0300
committerGravatar Vitaly Takmazov2016-08-08 11:11:54 +0300
commit7ac5b7d2a20176587f6adec6ac1f77ca43032ec0 (patch)
tree4c8e9ab1fac945da4600c1647f8cbb0baddc38b7 /juick-ws/src/main/java/com/juick/ws/components/PushComponent.java
parent930b3f29f788d7866d66fcb9e946f5947782d968 (diff)
juick-ws: fix components initialization
Diffstat (limited to 'juick-ws/src/main/java/com/juick/ws/components/PushComponent.java')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/components/PushComponent.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java b/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java
index 75c42b2c..b219d9d7 100644
--- a/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java
+++ b/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java
@@ -82,9 +82,7 @@ public class PushComponent implements JuickComponent, DisposableBean, Stream.Str
@Inject
Environment env;
- @Async
- @Override
- public void init() {
+ public PushComponent() {
logger.info("component initialized");
wns_application_sip = env.getProperty("wns_application_sip", "");
wns_client_secret = env.getProperty("wns_client_secret", "");
@@ -95,6 +93,12 @@ public class PushComponent implements JuickComponent, DisposableBean, Stream.Str
NumberUtils.toInt(env.getProperty("xmpp_port", ""), 5347), env.getProperty("push_xmpp_password", ""));
}
+ @Async
+ @Override
+ public void init() {
+ xmpp.startParsing();
+ }
+
@Override
public void destroy() {
logger.info("component destroyed");