1 package net.elgekko.mediacube.integration.amc;
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;
8 import java.io.IOException;
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);