Annotation Interface Reflected


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface Reflected
Indicates that the annotated member is accessed via reflection or some other mechanism that references the annotated member by name.

Care should be taken when refactoring or renaming such elements, as doing so may break functionality.

Optionally, value() may be used to document Classes where such references are located. Although note that references are not strictly present only in Classes and may be practically anywhere.

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    An optional array of Classes that reference the annotated member via reflection.
  • Element Details

    • value

      Class<?>[] value
      An optional array of Classes that reference the annotated member via reflection. This can be used for documentation purposes or to assist any automated tools that analyze code for reflection usage.
      Default:
      {}