public interface ConstraintValidatorDescriptor<A extends Annotation>
ConstraintValidator
or given as a
Lambda expression/method reference.Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
forClass(Class<? extends ConstraintValidator<A,?>> validatorClass,
Class<? extends Annotation> constraintAnnotationType) |
static <A extends Annotation,T> |
forLambda(Class<A> annotationType,
Type validatedType,
ConstraintDefinitionContext.ValidationCallable<T> lambda) |
Type |
getValidatedType()
The data type validated by the represented validator (not the constraint annotation type).
|
EnumSet<ValidationTarget> |
getValidationTargets()
The targets supported for validation by the represented validator.
|
Class<? extends ConstraintValidator<A,?>> |
getValidatorClass()
The implementation type of the represented validator.
|
ConstraintValidator<A,?> |
newInstance(ConstraintValidatorFactory constraintValidatorFactory)
Creates a new instance of the represented implementation type.
|
Class<? extends ConstraintValidator<A,?>> getValidatorClass()
EnumSet<ValidationTarget> getValidationTargets()
Type getValidatedType()
ConstraintValidator<A,?> newInstance(ConstraintValidatorFactory constraintValidatorFactory)
static <A extends Annotation> ConstraintValidatorDescriptor<A> forClass(Class<? extends ConstraintValidator<A,?>> validatorClass, Class<? extends Annotation> constraintAnnotationType)
static <A extends Annotation,T> ConstraintValidatorDescriptor<A> forLambda(Class<A> annotationType, Type validatedType, ConstraintDefinitionContext.ValidationCallable<T> lambda)
Copyright © 2021 JBoss by Red Hat. All rights reserved.