aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com/juick/components/configuration
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-02-06 16:36:36 +0300
committerGravatar Vitaly Takmazov2017-02-06 16:36:36 +0300
commit2befd7c98f9932d1aab6d72477490d0224000d62 (patch)
treefbafe6bf43242790f06021669124f958c8030df3 /juick-xmpp/src/main/java/com/juick/components/configuration
parent10d9407032b0eadeabc25ac7cd16a72b03be41bb (diff)
juick-xmpp: move ugnich xmpp extensions to tests
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components/configuration')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java b/juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java
index 9d6fc041..22b4cc41 100644
--- a/juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java
+++ b/juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java
@@ -6,7 +6,7 @@ package com.juick.components.configuration;
import com.juick.components.XMPPServer;
import com.juick.components.s2s.CleaningUp;
-import com.juick.components.s2s.ConnectionRouter;
+import com.juick.components.XMPPConnection;
import com.juick.components.s2s.JuickBot;
import com.juick.configuration.DataConfiguration;
import org.apache.commons.lang3.BooleanUtils;
@@ -48,9 +48,9 @@ public class XmppAppConfiguration {
return new JuickBot(xmpp());
}
@Bean
- public ConnectionRouter router() {
+ public XMPPConnection router() {
boolean disabled = BooleanUtils.toBoolean(env.getProperty("xmpp_disabled", "false"));
- return disabled ? null : new ConnectionRouter(xmpp(), env.getProperty("componentname"),
+ return disabled ? null : new XMPPConnection(xmpp(), env.getProperty("componentname"),
NumberUtils.toInt(env.getProperty("component_port"), 5347),
env.getProperty("xmpp_password"));
}