EnrichmentProcessInvalidCatalog.java

package com.sintia.ffl.admin.optique.catalogue.batch.tasklet.enrichcatalog;

import com.sintia.ffl.admin.optique.catalogue.batch.reporter.AbstractInvalidCatalogReporter;
import com.sintia.ffl.admin.optique.catalogue.batch.reporter.EnrichmentInvalidCatalogReporter;
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 EnrichmentProcessInvalidCatalog extends AbstractProcessInvalidCatalog {

	@Autowired
	private EnrichmentInvalidCatalogReporter reporter;

	public EnrichmentProcessInvalidCatalog(
		@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;
	}

}