Interface ConstraintValidatorFactory

    • Method Detail

      • getInstance

        <T extends ConstraintValidator<?,?>> T getInstance​(java.lang.Class<T> key)
        Type Parameters:
        T - The type of the constraint validator to instantiate
        Parameters:
        key - The class of the constraint validator to instantiate
        Returns:
        A new constraint validator instance of the specified class
      • releaseInstance

        void releaseInstance​(ConstraintValidator<?,?> instance)
        Signals ConstraintValidatorFactory that the instance is no longer being used by the Bean Validation provider.
        Parameters:
        instance - validator being released
        Since:
        1.1