Annotation Interface AppliesTo


@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface AppliesTo
A meta-annotation that limits the concrete types an annotation for type usages applies to.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    The meta-annotated annotation can be applied to subclasses of these classes.
    Class<?>[]
    The meta-annotated annotation can be applied to these classes.
  • Element Details

    • value

      Class<?>[] value
      The meta-annotated annotation can be applied to these classes.
      Default:
      {}
    • subClassesOf

      Class<?>[] subClassesOf
      The meta-annotated annotation can be applied to subclasses of these classes.
      Default:
      {}