public class

CustomValidatorBean

extends SpringValidatorAdapter
implements InitializingBean
java.lang.Object
   ↳ org.springframework.validation.beanvalidation.SpringValidatorAdapter
     ↳ org.springframework.validation.beanvalidation.CustomValidatorBean

Class Overview

Configurable bean class that exposes a specific JSR-303 Validator through its original interface as well as through the Spring Validator interface.

Summary

Public Constructors
CustomValidatorBean()
Public Methods
void afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
void setMessageInterpolator(MessageInterpolator messageInterpolator)
Specify a custom MessageInterpolator to use for this Validator.
void setTraversableResolver(TraversableResolver traversableResolver)
Specify a custom TraversableResolver to use for this Validator.
void setValidatorFactory(ValidatorFactory validatorFactory)
Set the ValidatorFactory to obtain the target Validator from.
[Expand]
Inherited Methods
From class org.springframework.validation.beanvalidation.SpringValidatorAdapter
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.validation.Validator

Public Constructors

public CustomValidatorBean ()

Public Methods

public void afterPropertiesSet ()

Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

public void setMessageInterpolator (MessageInterpolator messageInterpolator)

Specify a custom MessageInterpolator to use for this Validator.

public void setTraversableResolver (TraversableResolver traversableResolver)

Specify a custom TraversableResolver to use for this Validator.

public void setValidatorFactory (ValidatorFactory validatorFactory)

Set the ValidatorFactory to obtain the target Validator from.

Default is javax.validation.Validation#buildDefaultValidatorFactory().