aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-03 11:55:56 +0300
committerGravatar Vitaly Takmazov2018-04-03 11:55:56 +0300
commitb9a36a2c020994eed16fbd59b82c453e72c52d0f (patch)
tree8abc32eb3b8d6a3dcd98e17194ebf95b792af3a9 /juick-www/src/main
parent75b1989685576fcb1b7198ec90c4dd361587c973 (diff)
boot: conditional xmpp configuration
Diffstat (limited to 'juick-www/src/main')
-rw-r--r--juick-www/src/main/java/com/juick/www/configuration/EmbeddedXMPPConfig.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/juick-www/src/main/java/com/juick/www/configuration/EmbeddedXMPPConfig.java b/juick-www/src/main/java/com/juick/www/configuration/EmbeddedXMPPConfig.java
new file mode 100644
index 00000000..35377dcd
--- /dev/null
+++ b/juick-www/src/main/java/com/juick/www/configuration/EmbeddedXMPPConfig.java
@@ -0,0 +1,11 @@
+package com.juick.www.configuration;
+
+import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@ConditionalOnClass(name = "com.juick.server.xmpp.router.XMPPRouter")
+@ComponentScan(basePackages = "com.juick.server")
+public class EmbeddedXMPPConfig {
+}