org.springframework.batch.core.job
Class CompositeJobParametersValidator
java.lang.Object
org.springframework.batch.core.job.CompositeJobParametersValidator
- All Implemented Interfaces:
- JobParametersValidator, InitializingBean
public class CompositeJobParametersValidator
- extends Object
- implements JobParametersValidator, InitializingBean
Composite JobParametersValidator
that passes the job parameters through a sequence of
injected JobParametersValidator
s
- Author:
- Morten Andersen-Gott
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeJobParametersValidator
public CompositeJobParametersValidator()
validate
public void validate(JobParameters parameters)
throws JobParametersInvalidException
- Validates the JobParameters according to the injected JobParameterValidators
Validation stops and exception is thrown on first validation error
- Specified by:
validate
in interface JobParametersValidator
- Parameters:
parameters
- some JobParameters
- Throws:
JobParametersInvalidException
- if the parameters are invalid
setValidators
public void setValidators(List<JobParametersValidator> validators)
- Public setter for the validators
- Parameters:
validators
-
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
Copyright © 2013 SpringSource. All Rights Reserved.