Class SpringValidator<T>
java.lang.Object
org.springframework.batch.item.validator.SpringValidator<T>
- All Implemented Interfaces:
- Validator<T>,- org.springframework.beans.factory.InitializingBean
public class SpringValidator<T>
extends Object
implements Validator<T>, org.springframework.beans.factory.InitializingBean
Adapts the 
Validator interface to
 Validator.- Author:
- Tomas Slanina, Robert Kasanicky
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidsetValidator(org.springframework.validation.Validator validator) voidMethod used to validate if the value is valid.
- 
Constructor Details- 
SpringValidatorpublic SpringValidator()
 
- 
- 
Method Details- 
validateDescription copied from interface:ValidatorMethod used to validate if the value is valid.- Specified by:
- validatein interface- Validator<T>
- Parameters:
- item- object to be validated
- Throws:
- ValidationException- if value is not valid.
- See Also:
 
- 
setValidatorpublic void setValidator(org.springframework.validation.Validator validator) 
- 
afterPropertiesSet- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- Exception
 
 
-