org.springframework.batch.item.validator
Class SpringValidator
java.lang.Object
org.springframework.batch.item.validator.SpringValidator
- All Implemented Interfaces:
- Validator, InitializingBean
public class SpringValidator
- extends Object
- implements Validator, InitializingBean
Adapts the Validator
interface to
Validator
.
- Author:
- Tomas Slanina, Robert Kasanicky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringValidator
public SpringValidator()
validate
public void validate(Object item)
throws ValidationException
- Description copied from interface:
Validator
- Method used to validate if the value is valid.
- Specified by:
validate
in interface Validator
- Parameters:
item
- object to be validated
- Throws:
ValidationException
- if value is not valid.- See Also:
Validator.validate(Object)
setValidator
public void setValidator(Validator validator)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
Copyright © 2009 SpringSource. All Rights Reserved.