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 TypeMethodDescription<T extends jakarta.validation.ConstraintValidator<?,
?>>
TgetInstance
(@NonNull Class<T> validatorType, @NonNull Class<?> targetType, @NonNull jakarta.validation.ConstraintTarget constraintTarget) Find an instanceConstraintValidator
.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 instanceConstraintValidator
.- Type Parameters:
T
- The validator type- Parameters:
validatorType
- The validator typetargetType
- The target typeconstraintTarget
- The constraint target- Returns:
- a new instance or null if not supported
-