Annotation Interface GlobalAttachmentMode


@Retention(RUNTIME) @Target({TYPE,METHOD}) @AvailableSince("1.9.0") public @interface GlobalAttachmentMode
Sets a default attachment mode for all subcommands under the annotated type or method when their own attachment mode is AttachmentMode.UNSET.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Retrieves the AttachmentMode associated with this annotation.
  • Element Details

    • value

      Retrieves the AttachmentMode associated with this annotation.
      Returns:
      the attachment mode that defines how a subcommand integrates with the usages of a command.