diff options
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.java | 20 |
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); + } +} |