public class CommandRegistry extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.HashMap |
commands |
protected static CommandRegistry |
unknownCommand |
Constructor and Description |
---|
CommandRegistry() |
Modifier and Type | Method and Description |
---|---|
static Command |
getCommand(java.lang.String name) |
static java.util.Map |
getCommandMap() |
protected static Command |
loadCommand(java.lang.Class commandClass) |
protected static void |
loadCommandList()
TODO: Replace this part with the classpath magic
|
static void |
register(java.lang.String name,
java.lang.Class cmd) |
static void |
register(java.lang.String name,
Command cmd) |
protected static final java.util.HashMap commands
protected static final CommandRegistry unknownCommand
public CommandRegistry()
public static java.util.Map getCommandMap()
public static void register(java.lang.String name, java.lang.Class cmd)
public static Command getCommand(java.lang.String name)
protected static Command loadCommand(java.lang.Class commandClass)
protected static void loadCommandList()
Copyright © 2005-2012. All Rights Reserved.