aboutsummaryrefslogtreecommitdiff
path: root/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java
diff options
context:
space:
mode:
authorGravatar Anatoliy Sablin2017-11-06 16:54:00 +0300
committerGravatar Anatoliy Sablin2017-11-06 16:54:00 +0300
commitbb2a47ea3c17f92c1d55d8b0d26cd26a880373d9 (patch)
tree29a8b9773671357948a1841c4a8663dd83b87e2d /juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java
parent7fe4c65820d012d684405c56942b01da8e77bd23 (diff)
Moved to message listener.
Diffstat (limited to 'juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java')
-rw-r--r--juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java b/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java
new file mode 100644
index 00000000..b6b9ea0d
--- /dev/null
+++ b/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java
@@ -0,0 +1,20 @@
+package com.juick.command;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+
+import java.util.Set;
+
+/**
+ * @author ma1uta
+ */
+@Configuration
+@ComponentScan(basePackages = {"com.juick.command"})
+public class CommandsConfiguration {
+
+ @Bean
+ public Processor processor(Set<Command> commands) {
+ return new Processor(commands);
+ }
+}