40b0cf77b292e1799449c6c7447f6472ef9b4276
[mediacube.git] /
1 package net.elgekko.mediacube.integration.amc;
2
3 import org.springframework.beans.factory.config.BeanDefinition;
4 import org.springframework.context.annotation.Bean;
5 import org.springframework.context.annotation.Configuration;
6 import org.springframework.context.annotation.Scope;
7
8 import java.io.IOException;
9
10 @Configuration
11 public class AMCProcessorConfig {
12     @Bean(name = "AMCProcessor")
13     @Scope(BeanDefinition.SCOPE_PROTOTYPE)
14     public AMCProcessor createPrototype(AMCCSV reader, String file) throws IOException {
15         return new AMCProcessor(reader, file);
16     }
17 }