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 Jakarta Bean Validation provider.
instance- validator being released
This spec is licensed under the EFSL; this spec is based on material that is licensed under the Apache License, version 2.0.