package uk.ac.ebi.quickgo.index.annotation.coterms;

import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.StepExecutionListener;

/**
 * @author Tony Wardell
 * Date: 12/09/2016
 * Time: 15:01
 * Created with IntelliJ IDEA.
 */
public class CoTermsStepExecutionListener implements StepExecutionListener {

    private CoStatsPermutations all;
    CoStatsPermutations manual;

    public CoTermsStepExecutionListener(CoStatsPermutations all,
            CoStatsPermutations manual) {
        this.all = all;
        this.manual = manual;
    }

    @Override public void beforeStep(StepExecution stepExecution) {

    }

    @Override public ExitStatus afterStep(StepExecution stepExecution) {
        all.finish();
        manual.finish();
        return ExitStatus.COMPLETED;
    }
}

@@ -403,162 +403,194 @@
 ate 
-CoStatsPermutations all;%0A    CoStatsPermutations manual;%0A%0A    public CoTermsStepExecutionListener(CoStatsPermutations all,%0A            CoStatsPermutations
+AnnotationCoTermsAggregator all;%0A    AnnotationCoTermsAggregator manual;%0A%0A    public CoTermsStepExecutionListener(AnnotationCoTermsAggregator all,%0A            AnnotationCoTermsAggregator
  man

Rename used classes.