|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.validation.beanvalidation.SpringValidatorAdapter org.springframework.validation.beanvalidation.CustomValidatorBean
public class CustomValidatorBean
Configurable bean class that exposes a specific JSR-303 Validator
through its original interface as well as through the Spring
Validator
interface.
Constructor Summary | |
---|---|
CustomValidatorBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
void |
setMessageInterpolator(javax.validation.MessageInterpolator messageInterpolator)
Specify a custom MessageInterpolator to use for this Validator. |
void |
setTraversableResolver(javax.validation.TraversableResolver traversableResolver)
Specify a custom TraversableResolver to use for this Validator. |
void |
setValidatorFactory(javax.validation.ValidatorFactory validatorFactory)
Set the ValidatorFactory to obtain the target Validator from. |
Methods inherited from class org.springframework.validation.beanvalidation.SpringValidatorAdapter |
---|
getArgumentsForConstraint, getConstraintsForClass, supports, unwrap, validate, validate, validateProperty, validateValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.validation.Validator |
---|
getConstraintsForClass, unwrap, validate, validateProperty, validateValue |
Constructor Detail |
---|
public CustomValidatorBean()
Method Detail |
---|
public void setValidatorFactory(javax.validation.ValidatorFactory validatorFactory)
Default is Validation.buildDefaultValidatorFactory()
.
public void setMessageInterpolator(javax.validation.MessageInterpolator messageInterpolator)
public void setTraversableResolver(javax.validation.TraversableResolver traversableResolver)
public void afterPropertiesSet()
InitializingBean
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.
afterPropertiesSet
in interface InitializingBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |