org.springframework.batch.core.job
Class CompositeJobParametersValidator

java.lang.Object
  extended by 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 JobParametersValidators

Author:
Morten Andersen-Gott

Constructor Summary
CompositeJobParametersValidator()
           
 
Method Summary
 void afterPropertiesSet()
           
 void setValidators(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeJobParametersValidator

public CompositeJobParametersValidator()
Method Detail

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.