public class UnknownCommandFactory extends java.lang.Object implements CommandFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FACTORY_NAME |
static UnknownCommandFactory |
INSTANCE |
Constructor and Description |
---|
UnknownCommandFactory() |
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(java.lang.String command)
Create a command with the given name.
|
java.lang.String |
toString() |
public static final java.lang.String FACTORY_NAME
public static final UnknownCommandFactory INSTANCE
public java.lang.String toString()
toString
in class java.lang.Object
public Command createCommand(java.lang.String command)
CommandFactory
createCommand
in interface CommandFactory
command
- The command that will be runnull
Command
instance