Annotation Type Requires


@Retention(RUNTIME) @Target({ANNOTATION_TYPE,TYPE,METHOD}) public @interface Requires
Requires annotation is used to express Constraint. Can be used directly on a type or method, but also can be used to annotate other annotations. When used to annotate an other annotation, the target annotation defines the requirement context (which is passed to the Constraint. In all other cases, there is no context.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Constraint>[]