View Javadoc

1   package org.springframework.batch.core;
2   
3   
4   /**
5    * Strategy interface for a {@link Job} to use in validating its parameters for
6    * an execution.
7    * 
8    * @author Dave Syer
9    * 
10   */
11  public interface JobParametersValidator {
12  
13  	/**
14  	 * Check the parameters meet whatever requirements are appropriate, and
15  	 * throw an exception if not.
16  	 * 
17  	 * @param parameters some {@link JobParameters}
18  	 * @throws JobParametersInvalidException if the parameters are invalid
19  	 */
20  	void validate(JobParameters parameters) throws JobParametersInvalidException;
21  
22  }