org.sonatype.gshell.command.registry
Interface CommandRegistry

All Known Implementing Classes:
CommandRegistryImpl

public interface CommandRegistry

Registry for commands.

Since:
2.5
Author:
Jason Dillon

Method Summary
 boolean containsCommand(String name)
           
 CommandAction getCommand(String name)
           
 Collection<String> getCommandNames()
           
 Collection<CommandAction> getCommands()
           
 void registerCommand(String name, CommandAction command)
           
 void removeCommand(String name)
           
 

Method Detail

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.