public enum CommandControllerImpl extends Enum<CommandControllerImpl> implements CommandController
| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
registerCommandProcessor(String command,
CommandProcessor processor)
Registers a new command processor.
|
void |
startCommand(String command,
Map<String,String[]> parameters)
Starts command execution.
|
void |
stopCommand(String command,
Map<String,String[]> parameters)
Stops command execution.
|
void |
unregisterCommandProcessor(String command,
CommandProcessor processor)
Unregisters a command processor.
|
static CommandControllerImpl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandControllerImpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandControllerImpl INSTANCE
public static CommandControllerImpl[] values()
for (CommandControllerImpl c : CommandControllerImpl.values()) System.out.println(c);
public static CommandControllerImpl valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void registerCommandProcessor(String command, CommandProcessor processor)
CommandControllerregisterCommandProcessor in interface CommandControllercommand - string command to react onprocessor - the processor object for given commandpublic void unregisterCommandProcessor(String command, CommandProcessor processor)
CommandControllerunregisterCommandProcessor in interface CommandControllerpublic void startCommand(String command, Map<String,String[]> parameters)
CommandControllerstartCommand in interface CommandControllerpublic void stopCommand(String command, Map<String,String[]> parameters)
CommandControllerstopCommand in interface CommandControllerCopyright © 2010-2017 anotheria.net. All Rights Reserved.