aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp-bot/src/main/java/com/juick/components/configuration
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-19 13:52:03 +0300
committerGravatar Vitaly Takmazov2016-12-19 13:52:03 +0300
commit1ad9b27b731dc42a53bf5e42c094f1b89dc5ccb6 (patch)
tree4b4bdc6702a97cf9864c93ba13b7af98aac40d84 /juick-xmpp-bot/src/main/java/com/juick/components/configuration
parent1a9f60d68a3ee556c5fdc519b028ed39dd3b5981 (diff)
juick-xmpp-bot: inject juickProtocol
Diffstat (limited to 'juick-xmpp-bot/src/main/java/com/juick/components/configuration')
-rw-r--r--juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java b/juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java
index 0c5f10c1..d6905c1b 100644
--- a/juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java
+++ b/juick-xmpp-bot/src/main/java/com/juick/components/configuration/BotAppConfiguration.java
@@ -1,6 +1,7 @@
package com.juick.components.configuration;
import com.juick.components.XMPPBot;
+import com.juick.server.protocol.JuickProtocol;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
@@ -21,4 +22,8 @@ public class BotAppConfiguration {
public XMPPBot xmpp() {
return new XMPPBot(env);
}
+ @Bean
+ public JuickProtocol juickProtocol() {
+ return new JuickProtocol("http://juick.com");
+ }
}