javax.validation
(JSR-303) setup in a Spring application context: It bootstraps a javax.validation.ValidationFactory
and exposes it through the Spring {@link org.springframework.validation.Validator} interfaceas well as through the JSR-303 {@link javax.validation.Validator} interface and the{@link javax.validation.ValidatorFactory} interface itself.When talking to an instance of this bean through the Spring or JSR-303 Validator interfaces, you'll be talking to the default Validator of the underlying ValidatorFactory. This is very convenient in that you don't have to perform yet another call on the factory, assuming that you will almost always use the default Validator anyway. This can also be injected directly into any target dependency of type {@link org.springframework.validation.Validator}! @author Juergen Hoeller @since 3.0 @see javax.validation.ValidatorFactory @see javax.validation.Validator @see javax.validation.Validation#buildDefaultValidatorFactory() @see javax.validation.ValidatorFactory#getValidator()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|