org.apache.shale.clay.component.chain
Class AssignChildrenCommand
java.lang.Object
org.apache.shale.clay.component.chain.AbstractCommand
org.apache.shale.clay.component.chain.AssignChildrenCommand
- All Implemented Interfaces:
- Command
public class AssignChildrenCommand
- extends AbstractCommand
Iterates over the child ElementBean collection of a
ComponentBean, and invokes the CreateComponentCommand for
each.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssignChildrenCommand
public AssignChildrenCommand()
execute
public boolean execute(Context context)
throws Exception
This Command iterates over the ComponentBean
children collection and invokes the
Globals.ADD_COMPONENT_COMMAND_NAME for each
ElementBean.
- Specified by:
execute in interface Command- Specified by:
execute in class AbstractCommand
- Parameters:
context - commons chains
- Returns:
true if the chain is complete and should stop
- Throws:
Exception - propagated up to the top of the chain
Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.