Last active
December 21, 2015 21:28
-
-
Save gastaldi/6368034 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A CommandRegistry stores all the available Command objects | |
| */ | |
| public interface CommandRegistry{ | |
| /** | |
| * Queries the CommandRegistry for a command | |
| * @param name The command name | |
| * @return Command associated with the name | |
| * @throws CommandNotFoundException if no command can be found for the given name | |
| */ | |
| Command getCommand(String name) throws CommandNotFoundException; | |
| /** | |
| * Returns a read-only Map of this registry. | |
| */ | |
| Map<String, Command> asMap(); | |
| } |
gastaldi
commented
Aug 28, 2013
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment