Class AnnotationsManager


  • public class AnnotationsManager
    extends Object
    Manages (constraint) annotations according to the BV spec.
    Since:
    2.0
    • Method Detail

      • getDeclaredConstraints

        public static Annotation[] getDeclaredConstraints​(Meta<?> meta)
        Accounts for Constraint meta-annotation AND Repeatable constraint annotations.
        Parameters:
        meta -
        Returns:
        Annotation[]
      • validateConstraintDefinition

        public void validateConstraintDefinition​(Class<? extends Annotation> type)
      • getComposingConstraints

        public Annotation[] getComposingConstraints​(Annotation a)
        Retrieve the composing constraints for the specified constraint Annotation.
        Parameters:
        a -
        Returns:
        Annotation[]
      • isComposed

        public boolean isComposed​(Annotation a)
        Learn whether a is composed.
        Parameters:
        a -
        Returns:
        boolean
      • supportedTargets

        public <A extends AnnotationSet<jakarta.validation.constraintvalidation.ValidationTarget> supportedTargets​(Class<A> constraintType)
        Get the supported targets for constraintType.
        Parameters:
        constraintType -
        Returns:
        Set of ValidationTarget