com.itmusings.owiz.impl
Class Chain<InputType>

java.lang.Object
  extended by com.itmusings.owiz.impl.CommandBase<InputType>
      extended by com.itmusings.owiz.impl.Chain<InputType>
All Implemented Interfaces:
AttachableCommand<InputType>, Command<InputType>

public class Chain<InputType>
extends CommandBase<InputType>
implements Command<InputType>, AttachableCommand<InputType>

A chain is a command that executes a chain of other commands.

Author:
Raja Shankar Kolluru

Nested Class Summary
static class Chain.OrderedCommandDesc<InputType>
          This class is needed to ensure that the commands are retrieved in the correct order
 
Field Summary
static String INDEX
           
 
Constructor Summary
Chain()
           
 
Method Summary
 void attachCommand(AttachmentDescriptor<InputType> attachmentDescriptor, CommandDescriptor<InputType> command)
           
 void doExecute(InputType context)
           
 
Methods inherited from class com.itmusings.owiz.impl.CommandBase
execute, getConfigValue, postprocess, preprocess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEX

public static final String INDEX
See Also:
Constant Field Values
Constructor Detail

Chain

public Chain()
Method Detail

doExecute

public void doExecute(InputType context)
               throws Exception
Specified by:
doExecute in class CommandBase<InputType>
Throws:
Exception

attachCommand

public void attachCommand(AttachmentDescriptor<InputType> attachmentDescriptor,
                          CommandDescriptor<InputType> command)
Specified by:
attachCommand in interface AttachableCommand<InputType>


Copyright © 2010 ITMUSINGS. All Rights Reserved.