public class SpringValidator<T> extends java.lang.Object implements Validator<T>, org.springframework.beans.factory.InitializingBean
Validator
interface to
Validator
.Constructor and Description |
---|
SpringValidator() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
setValidator(org.springframework.validation.Validator validator) |
void |
validate(T item)
Method used to validate if the value is valid.
|
public void validate(T item) throws ValidationException
Validator
validate
in interface Validator<T>
item
- object to be validatedValidationException
- if value is not valid.Validator.validate(Object)
public void setValidator(org.springframework.validation.Validator validator)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception