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 CommandRegistry
name
- command nameline
- current terminal buffer lineCommandNotFoundException
public void completeCommandName(CompleteOperation co)
CommandRegistry
completeCommandName
in interface CommandRegistry
public Set<String> getAllCommandNames()
getAllCommandNames
in interface CommandRegistry
public void addCommand(CommandContainer container)
public void addCommand(Command command)
public void addAllCommandContainers(List<CommandContainer> commands)
public void removeCommand(String name)
removeCommand
in interface CommandRegistry
Copyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.