public class CompositeJobParametersValidator extends java.lang.Object implements JobParametersValidator, org.springframework.beans.factory.InitializingBean
JobParametersValidator
that passes the job parameters through a sequence of
injected JobParametersValidator
sConstructor and Description |
---|
CompositeJobParametersValidator() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
setValidators(java.util.List<JobParametersValidator> validators)
Public setter for the validators
|
void |
validate(JobParameters parameters)
Validates the JobParameters according to the injected JobParameterValidators
Validation stops and exception is thrown on first validation error
|
public void validate(JobParameters parameters) throws JobParametersInvalidException
validate
in interface JobParametersValidator
parameters
- some JobParameters
JobParametersInvalidException
- if the parameters are invalidpublic void setValidators(java.util.List<JobParametersValidator> validators)
validators
- public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception