org.apache.commons.chain.impl
public class: AddingCommand [javadoc |
source]
java.lang.Object
org.apache.commons.chain.impl.NonDelegatingCommand
org.apache.commons.chain.impl.AddingCommand
All Implemented Interfaces:
Command
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.
- author:
Craig - R. McClanahan
- version:
$ - Revision: 155403 $ $Date: 2005-02-26 12:52:46 +0000 (Sat, 26 Feb 2005) $
| Method from org.apache.commons.chain.impl.AddingCommand Summary: |
|---|
|
execute |
| Method from org.apache.commons.chain.impl.AddingCommand Detail: |
public boolean execute(Context context,
Chain chain) throws Exception {
// -------------------------------------------------------- Command Methods
// Execution method for this Command
super.execute(context);
parent.addCommand(new NonDelegatingCommand("NEW")); // Should cause ISE
return (true);
}
|