Interface InternalConstraintValidatorFactory

All Superinterfaces:
jakarta.validation.ConstraintValidatorFactory
All Known Implementing Classes:
DefaultInternalConstraintValidatorFactory

@Internal public interface InternalConstraintValidatorFactory extends jakarta.validation.ConstraintValidatorFactory
Internal version of ConstraintValidatorFactory.
Since:
4.3.0
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends jakarta.validation.ConstraintValidator<?, ?>>
    T
    getInstance(@NonNull Class<T> validatorType, @NonNull Class<?> targetType, @NonNull jakarta.validation.ConstraintTarget constraintTarget)
    Find an instance ConstraintValidator.

    Methods inherited from interface jakarta.validation.ConstraintValidatorFactory

    getInstance, releaseInstance
  • Method Details

    • getInstance

      @Nullable <T extends jakarta.validation.ConstraintValidator<?, ?>> T getInstance(@NonNull @NonNull Class<T> validatorType, @NonNull @NonNull Class<?> targetType, @NonNull @NonNull jakarta.validation.ConstraintTarget constraintTarget)
      Find an instance ConstraintValidator.
      Type Parameters:
      T - The validator type
      Parameters:
      validatorType - The validator type
      targetType - The target type
      constraintTarget - The constraint target
      Returns:
      a new instance or null if not supported