Annotation Interface Notify


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface Notify
Can be used to mark fields to emit a notification if its value is manually set or not set. This is most useful in combination with AutoCreate or LinkTo, to designate that the AutoCreate/AutoLink mechanism is either an unwanted fallback (ifUnset), or the expected behavior (ifSet).

Notify can also be used to change the default behavior for deprecated fields.

The default level is WARNING, but this can be overridden by level().
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The message to be given for the generated issue if the field was manually set.
    The message to be given for the generated issue if the field was not manually set.
    The level of the generated issue.
  • Element Details

    • ifSet

      String ifSet
      The message to be given for the generated issue if the field was manually set.
      Default:
      ""
    • ifUnset

      String ifUnset
      The message to be given for the generated issue if the field was not manually set.
      Default:
      ""
    • level

      The level of the generated issue.
      Default:
      WARNING