interface CommandRegistry : CommandResolver
A registry that contains the commands known by a shell. It is a mutable command resolver.
Author
Julien Viet
open static fun create(vertx: Vertx): CommandRegistry
Create a new registry. |
|
open static fun getShared(: Vertx): CommandRegistry
Get the shared registry for the Vert.x instance. |
|
abstract fun registerCommand(command: Class<out AnnotatedCommand>): CommandRegistry
Like abstract fun registerCommand(command: Class<out AnnotatedCommand>, completionHandler: Handler<AsyncResult<Command>>): CommandRegistry
Register a single command. abstract fun registerCommand(command: Command): CommandRegistry
Like abstract fun registerCommand(command: Command, completionHandler: Handler<AsyncResult<Command>>): CommandRegistry
Register a command |
|
abstract fun registerCommands(commands: MutableList<Command>): CommandRegistry
Like abstract fun registerCommands(commands: MutableList<Command>, completionHandler: Handler<AsyncResult<MutableList<Command>>>): CommandRegistry
Register a list of commands. |
|
abstract fun unregisterCommand(commandName: String): CommandRegistry
Like abstract fun unregisterCommand(commandName: String, completionHandler: Handler<AsyncResult<Void>>): CommandRegistry
Unregister a command. |