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