All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.validation.ValidatorContext Maven / Gradle / Ivy

There is a newer version: 2.0.1.Final
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy