public class CommandFactoryFactory extends Object
CommandFactory
instancesConstructor 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.CommandFactory
public 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–2016 The Apache Software Foundation. All rights reserved.