abstract fun registerCommand(command: Class<out AnnotatedCommand>): CommandRegistry
Like #registerCommand(Class, Handler), without a completion handler.
abstract fun registerCommand(command: Class<out AnnotatedCommand>, completionHandler: Handler<AsyncResult<Command>>): CommandRegistry
Register a single command.
command - the class of the command to register
completionHandler - notified when the command is registered
Return
a reference to this, so the API can be used fluently
abstract fun registerCommand(command: Command): CommandRegistry
Like #registerCommand(Command, Handler), without a completion handler.
abstract fun registerCommand(command: Command, completionHandler: Handler<AsyncResult<Command>>): CommandRegistry
Register a command
command - the command to register
completionHandler - notified when the command is registered
Return
a reference to this, so the API can be used fluently