org.progeeks.cmd
Interface CommandProcessor
- All Known Subinterfaces:
- CommandProcessorStack, Environment, StackableCommandProcessor, StackEnvironment, TargetedEnvironment
- All Known Implementing Classes:
- ForwardingStack, QueuingStack, SwingCommandProcessor
public interface CommandProcessor
This is defined the basic interface to which all implementations
must comply. A command processor adds on to the standard Gof
Command Pattern and provides a central location for executing
commands that further decouples the caller from the operation.
More advance command processor implementations can keep track
of the commands they've run and perhaps replay them or roll them
back. For more information, see "A System of Patterns", Buschmann,
et al..
- Version:
- $Revision: 1.1 $
- Author:
- Paul Speed
Method Summary |
Result |
execute(Command cmd)
Executes the specified command using the appropriate
environment implementation for this command processor. |
execute
Result execute(Command cmd)
- Executes the specified command using the appropriate
environment implementation for this command processor.
- Parameters:
cmd
- The command to invoke.
- Returns:
- A result container or null if the command returns
no result.
Copyright © 2002-2003 Paul Speed. All Rights Reserved.