public interface ConstraintValidatorFactory
ConstraintValidatorinstance based off its class. The
ConstraintValidatorFactoryis not responsible for calling
|Modifier and Type||Method and Description|
<T extends ConstraintValidator<?,?>> T getInstance(Class<T> key)
T- The type of the constraint validator to instantiate
key- The class of the constraint validator to instantiate
void releaseInstance(ConstraintValidator<?,?> instance)
ConstraintValidatorFactorythat the instance is no longer being used by the Bean Validation provider.
instance- validator being released
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.