aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com/juick/components/configuration
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-05 22:54:22 +0300
committerGravatar Vitaly Takmazov2016-12-05 23:19:10 +0300
commitc9c253f24601cc172058fd980b73791da4ec4f9c (patch)
treef4393dcec1d44b80357b4a3622e942f268ceeb12 /juick-xmpp/src/main/java/com/juick/components/configuration
parent4d9b066060bd78243616cb6f1fbdf0d06b09cbe7 (diff)
juick-xmpp: CleaningUp refactoring
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.java7
1 files changed, 7 insertions, 0 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 31ffae9e..a10e6553 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
@@ -5,12 +5,14 @@ package com.juick.components.configuration;
*/
import com.juick.components.XMPPServer;
+import com.juick.components.s2s.CleaningUp;
import com.juick.configuration.DataConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
+import org.springframework.scheduling.annotation.EnableScheduling;
import javax.inject.Inject;
import java.util.concurrent.ExecutorService;
@@ -19,6 +21,7 @@ import java.util.concurrent.Executors;
@Configuration
@PropertySource("classpath:juick.conf")
@Import(DataConfiguration.class)
+@EnableScheduling
public class XmppAppConfiguration {
@Inject
private Environment env;
@@ -32,4 +35,8 @@ public class XmppAppConfiguration {
public ExecutorService service() {
return Executors.newCachedThreadPool();
}
+ @Bean
+ public CleaningUp cleaningUp() {
+ return new CleaningUp();
+ }
}