javax.validation.ValidatorContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-api Show documentation
Show all versions of validation-api Show documentation
Bean Validation (JSR-303) API.
package javax.validation;
/**
* Return a Validator corresponding to the initialized state.
*
* @author Emmanuel Bernard
*/
public interface ValidatorContext {
/**
* Defines the message interpolator implementation used by the Validator.
* If not set or if null is passed as a parameter,
* the message interpolator of the ValidatorFactory is used.
*
* @return self following the chaining method pattern
*/
ValidatorContext messageInterpolator(MessageInterpolator messageInterpolator);
/**
* Defines the traversable resolver implementation used by the Validator.
* If not set or if null is passed as a parameter,
* the traversable resolver of the ValidatorFactory is used.
*
* @return self following the chaining method pattern
*/
ValidatorContext traversableResolver(TraversableResolver traversableResolver);
/**
* @return an initialized Validator
instance respecting the defined state.
* Validator instances can be pooled and shared by the implementation.
*/
Validator getValidator();
}