public class DelegatingValidator extends Object implements SmartValidator
Validator
implementation that delegates calls to another Validator
.
This Validator
implements Spring's SmartValidator
interface but does
not implement the JSR-303 javax.validator.Validator
interface.Constructor and Description |
---|
DelegatingValidator(Validator targetValidator)
Create a new
DelegatingValidator instance. |
DelegatingValidator(Validator targetValidator)
Create a new
DelegatingValidator instance. |
Modifier and Type | Method and Description |
---|---|
protected Validator |
getDelegate()
Return the delegate validator.
|
boolean |
supports(Class<?> clazz) |
void |
validate(Object target,
Errors errors) |
void |
validate(Object target,
Errors errors,
Object... validationHints) |
public DelegatingValidator(Validator targetValidator)
DelegatingValidator
instance.targetValidator
- the target JSR validatorpublic DelegatingValidator(Validator targetValidator)
DelegatingValidator
instance.targetValidator
- the target validatorpublic void validate(Object target, Errors errors, Object... validationHints)
validate
in interface SmartValidator
protected final Validator getDelegate()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.