public class TypeMapCommandFactory extends Object implements CommandFactory
| Constructor and Description |
|---|
TypeMapCommandFactory(Map<String,Class<? extends Command>> commandTypes) |
| Modifier and Type | Method and Description |
|---|---|
Command |
createCommand(String commandName)
Create new command instance
|
Map<String,Class<? extends Command>> |
getCommandTypes() |
public Command createCommand(String commandName)
CommandFactorycreateCommand in interface CommandFactorycommandName - Command namepublic Map<String,Class<? extends Command>> getCommandTypes()
getCommandTypes in interface CommandFactoryCopyright © 2008–2020. All rights reserved.