Uses of Interface
org.springframework.validation.Validator
Packages that use Validator
Package
Description
Provides data binding and validation functionality,
for usage in business and/or UI layers.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
-
Uses of Validator in org.springframework.validation
Subinterfaces of Validator in org.springframework.validationModifier and TypeInterfaceDescriptioninterfaceExtended variant of theValidatorinterface, adding support for validation 'hints'.Methods in org.springframework.validation that return ValidatorModifier and TypeMethodDescriptionstatic <T> ValidatorValidator.forInstanceOf(Class<T> targetClass, BiConsumer<T, Errors> delegate) Return aValidatorthat checks whether the target object is an instance oftargetClass, applying the givendelegateto populateErrorsif it is.static <T> ValidatorValidator.forType(Class<T> targetClass, BiConsumer<T, Errors> delegate) Return aValidatorthat checks whether the target object's class is identical totargetClass, applying the givendelegateto populateErrorsif it is.DataBinder.getValidator()Return the primary Validator to apply after each binding step, if any.Methods in org.springframework.validation that return types with arguments of type ValidatorModifier and TypeMethodDescriptionDataBinder.getValidators()Return the Validators to apply after data binding.DataBinder.getValidatorsToApply()Return the Validators to apply after data binding.Methods in org.springframework.validation with parameters of type ValidatorModifier and TypeMethodDescriptionvoidDataBinder.addValidators(Validator... validators) Add Validators to apply after each binding step.static voidValidationUtils.invokeValidator(Validator validator, Object target, Errors errors) static voidValidationUtils.invokeValidator(Validator validator, Object target, Errors errors, Object @Nullable ... validationHints) voidDataBinder.replaceValidators(Validator... validators) Replace the Validators to apply after each binding step.voidDataBinder.setValidator(@Nullable Validator validator) Set the Validator to apply after each binding step.Method parameters in org.springframework.validation with type arguments of type ValidatorModifier and TypeMethodDescriptionvoidDataBinder.setExcludedValidators(Predicate<Validator> predicate) Configure a predicate to exclude validators. -
Uses of Validator in org.springframework.validation.beanvalidation
Classes in org.springframework.validation.beanvalidation that implement ValidatorModifier and TypeClassDescriptionclassConfigurable bean class that exposes a specific JSR-303 Validator through its original interface as well as through the SpringValidatorinterface.classThis is the central class forjakarta.validation(JSR-303) setup in a Spring application context: It bootstraps ajakarta.validation.ValidationFactoryand exposes it through the SpringValidatorinterface as well as through the JSR-303Validatorinterface and theValidatorFactoryinterface itself.classLocalValidatorFactoryBeansubclass that simply turnsValidatorcalls into no-ops in case of no Bean Validation provider being available.classAdapter that takes a JSR-303javax.validator.Validatorand exposes it as a SpringValidatorwhile also exposing the original JSR-303 Validator interface itself.