Package org.tbk.ngtor.conditional
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
-
Element Details
-
value
String[] valueAlias forname().- Returns:
- the names
- Default:
- {}
-
name
String[] nameThe name of the command to test.- Returns:
- the names
- Default:
- {}
-
matchIfMissing
boolean matchIfMissingSpecify if the condition should match if the command is not set. Defaults tofalse.- Returns:
- should match if the command is missing
- Default:
- false
-