aboutsummaryrefslogtreecommitdiff
path: root/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java
blob: a8f666531067011745fb3943301c97757c9b5d7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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<Command> commands) {
        return new Processor(commands);
    }
}