public abstract class AbstractDelegatingCommandFactory extends AbstractLoggingBean implements CommandFactory
log
Modifier | Constructor and Description |
---|---|
protected |
AbstractDelegatingCommandFactory(String name) |
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(String command)
Create a command with the given name.
|
protected Command |
createUnsupportedCommand(String command) |
protected abstract Command |
executeSupportedCommand(String command) |
CommandFactory |
getDelegateCommandFactory() |
abstract boolean |
isSupportedCommand(String command) |
void |
setDelegateCommandFactory(CommandFactory factory) |
String |
toString() |
getSimplifiedLogger
protected AbstractDelegatingCommandFactory(String name)
public CommandFactory getDelegateCommandFactory()
public void setDelegateCommandFactory(CommandFactory factory)
public Command createCommand(String command)
CommandFactory
createCommand
in interface CommandFactory
command
- The command that will be runnull
Command
instancepublic abstract boolean isSupportedCommand(String command)
command
- The command about to be executedtrue
if this command is supported by the command
factory, false
if it will be passed on to the
delegate
factoryCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.