public static class Validation extends Object
ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
Or, equivalently:
Configuration<?> configuration = Validation
.byDefaultProvider()
.configure();
ValidatorFactory factory = configuration.buildValidatorFactory();
Only the default provider is available for use, and thus the byProvider
and
providerResolver
methods are not supported. Calling either of these methods will
generate an exception.
This class was modified by Google from the original javax.validation.Validation source to make it suitable for GWT.
Copyright © 2018. All rights reserved.