LoadCatalogProcessInvalidCatalog.java
package com.sintia.ffl.admin.optique.catalogue.batch.tasklet.loadcatalog;
import com.sintia.ffl.admin.optique.catalogue.batch.reporter.AbstractInvalidCatalogReporter;
import com.sintia.ffl.admin.optique.catalogue.batch.reporter.LoadCatalogInvalidCatalogReporter;
import com.sintia.ffl.admin.optique.catalogue.batch.tasklet.AbstractProcessInvalidCatalog;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.util.Date;
@Component
@StepScope
public class LoadCatalogProcessInvalidCatalog extends AbstractProcessInvalidCatalog {
@Autowired
private LoadCatalogInvalidCatalogReporter reporter;
public LoadCatalogProcessInvalidCatalog(
@Value("#{jobParameters[catalogDate]}") String catalogDate, @Value("#{jobParameters[catalogLabel]}") String catalogLabel,
@Value("#{jobParameters[catalogMaker]}") String catalogMaker, @Value("#{jobParameters[catalogProvider]}") String catalogProvider,
@Value("#{jobParameters[scriptDate]}") Date scriptDate) {
super(catalogDate, catalogLabel, catalogMaker, catalogProvider, scriptDate);
}
@Override
protected AbstractInvalidCatalogReporter getReporter() {
return reporter;
}
}