Annotation Type StringDefault


@Retention(RUNTIME) @Target(METHOD) public @interface StringDefault
Specifies the default value as string.

While primarily used by StringLiaison, this annotation can theoretically be used by any type liaison. Its presence will also override the value of the default method, if it exists.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The string value to provide as a default
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The string value to provide as an "if missing" default.
  • Element Details

    • value

      String value
      The string value to provide as a default
      Returns:
      the string value
    • ifMissing

      String ifMissing
      The string value to provide as an "if missing" default. See DefaultValues.ifMissing() for considerations.

      If unset, this falls back to value()

      Returns:
      the value to provide when missing
      Default:
      "ausutfyguhibgvftrdfyguhijnbhvgfxserrftgyuhinbgvfcrxszeretfygubna"