org.progeeks.cmd.stack
Interface CommandProcessorStack

All Superinterfaces:
CommandProcessor
All Known Subinterfaces:
StackEnvironment
All Known Implementing Classes:
ForwardingStack, QueuingStack

public interface CommandProcessorStack
extends CommandProcessor

A stack of command processors providing a simple state manager. The top of the stack will be the first to receive commands. Different implementations will do different things with commands that cannot be sent to the top stack entry because their canExecute(Command) method returns false.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Method Summary
 StackableCommandProcessor peekCommandProcessor()
          Returns the current top command processor.
 StackableCommandProcessor popCommandProcessor()
          Pops the current command processor.
 void pushCommandProcessor(StackableCommandProcessor cmdProc)
          Pushes a new command processor onto the stack.
 
Methods inherited from interface org.progeeks.cmd.CommandProcessor
execute
 

Method Detail

pushCommandProcessor

void pushCommandProcessor(StackableCommandProcessor cmdProc)
Pushes a new command processor onto the stack.


popCommandProcessor

StackableCommandProcessor popCommandProcessor()
Pops the current command processor.


peekCommandProcessor

StackableCommandProcessor peekCommandProcessor()
Returns the current top command processor.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.