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 commands) { return new Processor(commands); } }