Annotation Interface InheritedArg


@Target(PARAMETER) @Retention(RUNTIME) public @interface InheritedArg
Marks a parameter as inherited from an ancestor command's pathway. The framework automatically resolves which ancestor pathway provides this parameter.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The expected type of the inherited argument (for validation).
    The name of the argument to inherit from ancestor pathway.
  • Element Details

    • value

      String value
      The name of the argument to inherit from ancestor pathway. If empty, the parameter name is used for matching.
      Default:
      ""
    • type

      Class<?> type
      The expected type of the inherited argument (for validation). If not specified, uses the parameter's actual type.
      Default:
      java.lang.Void.class