Package kboyle.oktane.core.module
Class CommandModule
java.lang.Object
kboyle.oktane.core.module.CommandModule
Represents a command module.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptioncom.google.common.collect.ImmutableList<Class<?>>
com.google.common.collect.ImmutableList<CommandModule>
com.google.common.collect.ImmutableList<Command>
com.google.common.collect.ImmutableSet<String>
Optional<Class<? extends ModuleBase<?>>>
com.google.common.collect.ImmutableList<Precondition>
boolean
boolean
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommandModule.Builder
builder()
reactor.core.publisher.Mono<PreconditionResult>
runPreconditions(CommandContext context, Command command)
Runs the preconditions that belong to this module.toString()
-
Field Details
-
name
-
groups
-
commands
-
preconditions
-
description
-
beans
-
singleton
public final boolean singleton -
synchronised
public final boolean synchronised -
parent
-
children
-
originalClass
-
-
Method Details
-
builder
-
runPreconditions
public reactor.core.publisher.Mono<PreconditionResult> runPreconditions(CommandContext context, Command command)Runs the preconditions that belong to this module.- Parameters:
context
- The context to pass to the preconditions.- Returns:
- The result of executing the preconditions.
-
toString
-