public interface SmartValidator extends Validator
Validatorinterface, adding support for validation 'hints'.
targetobject, which must be of a type of
Classfor which the
Validator.supports(Class)method typically returns
errors instance can be used to report any
resulting validation errors.
This variant of
validate() supports validation hints, such as
validation groups against a JSR-303 provider (in which case, the provided hint
objects need to be annotation arguments of type
Note: Validation hints may get ignored by the actual target
in which case this method should behave just like its regular
Validator.validate(Object, Errors) sibling.
target- the object that is to be validated (can be
errors- contextual state about the validation process (never
validationHints- one or more hint objects to be passed to the validation engine