Annotation Interface ConditionalOnCommand


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(org.tbk.ngtor.conditional.OnCommandCondition.class) public @interface ConditionalOnCommand
@Conditional that matches when a given command is executed.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Specify if the condition should match if the command is not set.
    The name of the command to test.
    Alias for name().
  • Element Details

    • value

      String[] value
      Alias for name().
      Returns:
      the names
      Default:
      {}
    • name

      String[] name
      The name of the command to test.
      Returns:
      the names
      Default:
      {}
    • matchIfMissing

      boolean matchIfMissing
      Specify if the condition should match if the command is not set. Defaults to false.
      Returns:
      should match if the command is missing
      Default:
      false