org.sonatype.gshell.command.registry
Interface CommandRegistry
- All Known Implementing Classes:
- CommandRegistryImpl
public interface CommandRegistry
Registry for commands.
- Since:
- 2.5
- Author:
- Jason Dillon
registerCommand
void registerCommand(String name,
CommandAction command)
throws DuplicateCommandException
- Throws:
DuplicateCommandException
removeCommand
void removeCommand(String name)
throws NoSuchCommandException
- Throws:
NoSuchCommandException
getCommand
CommandAction getCommand(String name)
throws NoSuchCommandException
- Throws:
NoSuchCommandException
containsCommand
boolean containsCommand(String name)
getCommandNames
Collection<String> getCommandNames()
getCommands
Collection<CommandAction> getCommands()
Copyright © 2008-2011 Sonatype. All Rights Reserved.