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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user