org.apache.beehive.netui.core.chain.impl
Class ChainBase

Object
  extended by ChainBase
All Implemented Interfaces:
Chain, Command

public class ChainBase
extends Object
implements Chain


Constructor Summary
ChainBase()
           
 
Method Summary
 void addCommand(Command command)
          Add a command to the chian.
 boolean execute(Context context)
          Execute the chain using the provided Context.
 Command[] getCommands()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainBase

public ChainBase()
Method Detail

addCommand

public void addCommand(Command command)
Add a command to the chian.

Specified by:
addCommand in interface Chain
Parameters:
command - the new command

getCommands

public Command[] getCommands()
Specified by:
getCommands in interface Chain

execute

public boolean execute(Context context)
                throws Exception
Execute the chain using the provided Context.

Specified by:
execute in interface Command
Parameters:
context -
Returns:
Throws:
Exception