public enum CommandControllerImpl extends java.lang.Enum<CommandControllerImpl> implements CommandController
| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
registerCommandProcessor(java.lang.String command,
CommandProcessor processor)
Registers a new command processor.
|
void |
startCommand(java.lang.String command,
java.util.Map<java.lang.String,java.lang.String[]> parameters)
Starts command execution.
|
void |
stopCommand(java.lang.String command,
java.util.Map<java.lang.String,java.lang.String[]> parameters)
Stops command execution.
|
void |
unregisterCommandProcessor(java.lang.String command,
CommandProcessor processor)
Unregisters a command processor.
|
static CommandControllerImpl |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void registerCommandProcessor(java.lang.String command,
CommandProcessor processor)
CommandControllerregisterCommandProcessor in interface CommandControllercommand - string command to react onprocessor - the processor object for given commandpublic void unregisterCommandProcessor(java.lang.String command,
CommandProcessor processor)
CommandControllerunregisterCommandProcessor in interface CommandControllerpublic void startCommand(java.lang.String command,
java.util.Map<java.lang.String,java.lang.String[]> parameters)
CommandControllerstartCommand in interface CommandControllerpublic void stopCommand(java.lang.String command,
java.util.Map<java.lang.String,java.lang.String[]> parameters)
CommandControllerstopCommand in interface CommandControllerCopyright © 2010-2020 anotheria.net. All Rights Reserved.