public class CommandFactoryFactory extends Object
CommandFactory instances| Constructor and Description |
|---|
CommandFactoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(String commandName,
Command command)
Add or override a command.
|
CommandFactory |
createCommandFactory()
Create an
CommandFactory based on the configuration on the factory. |
Map<String,Command> |
getCommandMap()
Get the installed commands
|
boolean |
isUseDefaultCommands()
Are default commands used?
|
void |
setCommandMap(Map<String,Command> commandMap)
Set commands to add or override to the default commands
|
void |
setUseDefaultCommands(boolean useDefaultCommands)
Sets whether the default commands will be used.
|
public CommandFactory createCommandFactory()
CommandFactory based on the configuration on the factory.CommandFactorypublic boolean isUseDefaultCommands()
public void setUseDefaultCommands(boolean useDefaultCommands)
useDefaultCommands - true if default commands should be usedpublic Map<String,Command> getCommandMap()
public void addCommand(String commandName, Command command)
commandName - The command name, e.g. STORcommand - The commandCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.