Class AddingCommand

java.lang.Object
org.apache.commons.chain.impl.NonDelegatingCommand
org.apache.commons.chain.impl.AddingCommand
All Implemented Interfaces:
Command<Context>

public class AddingCommand extends NonDelegatingCommand
Implementation of Command that logs its identifier and and attempts to add a new Command to the Chain. This should cause an IllegalStateException if the Chain implementation subclasses ChainBase.
Version:
$Revision$ $Date$
Author:
Craig R. McClanahan
  • Constructor Details

    • AddingCommand

      public AddingCommand()
    • AddingCommand

      public AddingCommand(String id, Chain<Context> parent)
      Construct an instance that will log the specified identifier
      Parameters:
      id - identifier to log for this Command instance
      parent - the parent Chain
  • Method Details