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