|
|||||||||||
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 Command
in a
Chain
containing this Command
by returning
false
execute
in interface org.apache.commons.chain.Command
context
- The Context
to be processed by this Command
true
if the processing of this Context
has
been completed, or false
if the processing of this
Context
should be delegated to a subsequent
Command
in 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 |