Create instance of javax.validation.Validator manually

To bootstrap javax.validation.Validator you can simply use the following code:

final ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
final Validator validator = factory.getValidator();

For further information documentation see

Leave a Reply