Interface ConstraintDefinitionTarget
-
- All Known Subinterfaces:
ConstraintDefinitionContext<A>,ConstraintMappingTarget,ContainerElementConstraintMappingContext,CrossParameterConstraintMappingContext,ParameterConstraintMappingContext,PropertyConstraintMappingContext,ReturnValueConstraintMappingContext,TypeConstraintMappingContext<C>
- All Known Implementing Classes:
ContainerElementConstraintMappingContextImpl,TypeConstraintMappingContextImpl
public interface ConstraintDefinitionTargetFacet of a constraint definition creational context which allows to select the constraint (annotation type) to which the next operations shall apply.- Author:
- Yoann Rodiere
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <A extends Annotation>
ConstraintDefinitionContext<A>constraintDefinition(Class<A> annotationType)Selects the constraint (i.e.
-
-
-
Method Detail
-
constraintDefinition
<A extends Annotation> ConstraintDefinitionContext<A> constraintDefinition(Class<A> annotationType)
Selects the constraint (i.e. annotation type) to which the next operations shall apply. A given constraint may only be configured once.- Type Parameters:
A- The annotation type to select.- Parameters:
annotationType- The annotation type to select. This type must be an@interfaceannotated withjakarta.validation.Constraint.- Returns:
- A creational context representing the selected constraint.
-
-