RESOLVED - issue BATCH-1411: Allow a Job to specify its required JobParameters

Move validation check to AbstractJob (and out of Job)
This commit is contained in:
dsyer
2009-11-12 09:03:05 +00:00
parent 76a2fd1886
commit 8563523307
12 changed files with 137 additions and 79 deletions

View File

@@ -21,9 +21,7 @@ import java.util.List;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersIncrementer;
import org.springframework.batch.core.JobParametersInvalidException;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.UnexpectedJobExecutionException;
import org.springframework.beans.factory.BeanNameAware;
@@ -99,10 +97,6 @@ public class JobSupport implements BeanNameAware, Job {
return name;
}
public void validate(JobParameters parameters) throws JobParametersInvalidException {
// no-op
}
public void setSteps(List<Step> steps) {
this.steps.clear();
this.steps.addAll(steps);