|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.strutsit.chain.DependCommand
Abstract Command for checking dependencies
| Constructor Summary | |
DependCommand()
|
|
| Method Summary | |
abstract void |
doRegister()
A DependCommand has to registers his dependencies. |
abstract boolean |
execute(org.apache.commons.chain.Context context)
Execute a unit of processing work to be performed. |
java.util.List |
getClassNames()
Returns all classNames as a List object. |
java.util.List |
getNames()
Returns all names as a List object. |
protected void |
registerClassName(java.lang.String className)
Register a dependency as a className |
protected void |
registerName(java.lang.String name)
Register a dependency as a name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DependCommand()
| Method Detail |
protected void registerName(java.lang.String name)
name - The name of the command that dependsprotected void registerClassName(java.lang.String className)
className - The className of the command that dependspublic java.util.List getNames()
public java.util.List getClassNames()
public abstract void doRegister()
public abstract boolean execute(org.apache.commons.chain.Context context)
throws java.lang.Exception
Execute a unit of processing work to be performed. This Command
may either complete the required processing and return true,
or delegate remaining processing to the next Commandin a
Chaincontaining this Commandby returning
false
execute in interface org.apache.commons.chain.Commandcontext - The Contextto be processed by this Command
true if the processing of this Contexthas
been completed, or false if the processing of this
Contextshould be delegated to a subsequent
Commandin an enclosing Chain
ChainException - general purpose exception return to indicate abnormal
termination
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||