Interface ConstraintDefinitionTarget

All Known Subinterfaces:
ConstraintDefinitionContext<A>, ConstraintMappingTarget, ContainerElementConstraintMappingContext, CrossParameterConstraintMappingContext, ParameterConstraintMappingContext, PropertyConstraintMappingContext, ReturnValueConstraintMappingContext, TypeConstraintMappingContext<C>
All Known Implementing Classes:
ContainerElementConstraintMappingContextImpl, TypeConstraintMappingContextImpl

public interface ConstraintDefinitionTarget
Facet 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 Details

    • 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 @interface annotated with javax.validation.Constraint.
      Returns:
      A creational context representing the selected constraint.