package com.juick.command; import com.juick.configuration.DataConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import java.util.Set; /** * @author ma1uta */ @Configuration @Import(DataConfiguration.class) @ComponentScan(basePackages = {"com.juick.command"}) public class CommandsConfiguration { @Bean public Processor processor(Set commands) { return new Processor(commands); } }