aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-02 16:00:44 +0300
committerGravatar Vitaly Takmazov2018-04-02 16:00:44 +0300
commit22ee9166d87a9b6a853c25c5f2bb3ff95aacad35 (patch)
tree9d47f531c4adca4266a496d9138156957fb23902 /juick-server/src/main
parentc469abc2a0cdef22b789c7b26ac05f261d21c870 (diff)
xmpp: fix router init
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java b/juick-server/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java
index e5900977..a262e941 100644
--- a/juick-server/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java
+++ b/juick-server/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java
@@ -47,12 +47,12 @@ public class XMPPRouter implements StreamHandler {
@Value("${router_port:5347}")
private int routerPort;
+ @Inject
private XMPPServer xmppServer;
- @Inject
- public XMPPRouter(XMPPServer xmppServer) {
+ @PostConstruct
+ public void init() {
logger.info("component router initialized");
- this.xmppServer = xmppServer;
service.submit(() -> {
try {
listener = new ServerSocket(routerPort);