Package | Description |
---|---|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
org.springframework.validation.beanvalidation |
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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SmartValidator
Extended variant of the
Validator interface, adding support for
validation 'hints'. |
Modifier and Type | Method and Description |
---|---|
Validator |
DataBinder.getValidator()
Return the primary Validator to apply after each binding step, if any.
|
Modifier and Type | Method and Description |
---|---|
List<Validator> |
DataBinder.getValidators()
Return the Validators to apply after data binding.
|
Modifier and Type | Method and Description |
---|---|
void |
DataBinder.addValidators(Validator... validators)
Add Validators to apply after each binding step.
|
static void |
ValidationUtils.invokeValidator(Validator validator,
Object obj,
Errors errors)
|
static void |
ValidationUtils.invokeValidator(Validator validator,
Object obj,
Errors errors,
Object... validationHints)
|
void |
DataBinder.replaceValidators(Validator... validators)
Replace the Validators to apply after each binding step.
|
void |
DataBinder.setValidator(Validator validator)
Set the Validator to apply after each binding step.
|
Modifier and Type | Class and Description |
---|---|
class |
CustomValidatorBean
Configurable bean class that exposes a specific JSR-303 Validator
through its original interface as well as through the Spring
Validator interface. |
class |
LocalValidatorFactoryBean
This is the central class for
javax.validation (JSR-303) setup in a Spring
application context: It bootstraps a javax.validation.ValidationFactory and
exposes it through the Spring Validator interface
as well as through the JSR-303 Validator interface and the
ValidatorFactory interface itself. |
class |
OptionalValidatorFactoryBean
LocalValidatorFactoryBean subclass that simply turns
Validator calls into no-ops
in case of no Bean Validation provider being available. |
class |
SpringValidatorAdapter
Adapter that takes a JSR-303
javax.validator.Validator and
exposes it as a Spring Validator
while also exposing the original JSR-303 Validator interface itself. |