Interface CommandRegistry
- All Superinterfaces:
CommandResolver
A registry that contains the commands known by a shell.
It is a mutable command resolver.
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommandRegistryCreate a new registry.static CommandRegistryGet the shared registry for the Vert.x instance.registerCommand(Command command) Register a commandregisterCommand(Class<? extends AnnotatedCommand> command) Register a single command.registerCommands(List<Command> commands) Register a list of commands.unregisterCommand(String commandName) Unregister a command.Methods inherited from interface CommandResolver
commands, getCommand
-
Method Details
-
create
Create a new registry.- Parameters:
vertx- the vertx instance- Returns:
- the created registry
-
registerCommand
Register a single command.- Parameters:
command- the class of the command to register- Returns:
- a future notified when the command is registered
-
registerCommand
-
registerCommands
-
unregisterCommand