public class MutableCommandRegistry extends Object implements CommandRegistry
| Constructor and Description |
|---|
MutableCommandRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllCommandContainers(List<CommandContainer> commands) |
void |
addAllCommands(List<Command> commands) |
void |
addCommand(Class<? extends Command> command) |
void |
addCommand(Command command) |
void |
addCommand(CommandContainer container) |
void |
completeCommandName(CompleteOperation co)
Based on input, find all commands that match or partly match
|
Set<String> |
getAllCommandNames() |
CommandContainer |
getCommand(String name,
String line) |
void |
removeCommand(String name) |
void |
setCommandContainerBuilder(CommandContainerBuilder containerBuilder) |
public void setCommandContainerBuilder(CommandContainerBuilder containerBuilder)
public CommandContainer getCommand(String name, String line) throws CommandNotFoundException
getCommand in interface CommandRegistryname - command nameline - current terminal buffer lineCommandNotFoundExceptionpublic void completeCommandName(CompleteOperation co)
CommandRegistrycompleteCommandName in interface CommandRegistrypublic Set<String> getAllCommandNames()
getAllCommandNames in interface CommandRegistrypublic void addCommand(CommandContainer container)
public void addCommand(Command command)
public void addAllCommandContainers(List<CommandContainer> commands)
public void removeCommand(String name)
removeCommand in interface CommandRegistryCopyright © 2022 JBoss by Red Hat. All rights reserved.