|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.misc.chain.commands.SimpleCommand
This is a standard Command that simply implements all the required methods of the Command interface and returns Result.SUCCESS from each. This is handy if you need to write a Command that only cares about the execute() method, this way you can extend this class instead of directly implementing Command and only have to override execute(), init() and cleanup() will take care of themselves.
Constructor Summary | |
SimpleCommand()
|
Method Summary | |
Result |
cleanup(ChainContext chainContext)
Cleanup(). |
Result |
execute(ChainContext chainContext)
Execute(). |
Result |
init(ChainContext chainContext)
Init(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleCommand()
Method Detail |
public Result init(ChainContext chainContext)
init
in interface Command
chainContext
- The Chain Context being used by the Chain executing
this command.
public Result execute(ChainContext chainContext)
execute
in interface Command
chainContext
- The Chain Context being used by the Chain executing
this command.
public Result cleanup(ChainContext chainContext)
cleanup
in interface Command
chainContext
- The Chain Context being used by the Chain executing
this command.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |