|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.joseluismartin.cmd.DefaultTask
public class DefaultTask
Composite of commands that delegate operations to collections. A command may be added as preprocessor, command or postprocessor
| Constructor Summary | |
|---|---|
DefaultTask()
Default Ctor. |
|
| Method Summary | |
|---|---|
void |
addComand(List<Command> cmdList)
Add a list of commands |
void |
addCommand(Command c)
Add a Command to the command list of task |
void |
addPostProcessor(Command c)
Add a Command to postprocessor command list |
void |
addPreprocesor(Command c)
Add a Command to prepocesor command list |
boolean |
execute(Object data)
Execute prepocesors, commands and postprocessors in order throw a CommandException if some command fails an stopOnfault is true. |
List<Command> |
getCommands()
|
String |
getName()
|
List<Command> |
getPostProcessors()
|
List<Command> |
getPreProcessors()
|
List<Command> |
newCommandList()
Creates a new command list |
void |
onFault(Object data)
Composite onFault to Commands |
void |
removeComannd(Command c)
Remove a Command from command list of task |
void |
removePostProcessor(Command c)
Remove a Command to postprocesor list of task |
void |
removePreprocesor(Command c)
Remove a Command from preprocesor command list |
void |
setCommands(List<Command> commands)
|
void |
setName(String name)
|
void |
setPostProcessors(List<Command> postProcessors)
|
void |
setPreProcessors(List<Command> preProcessors)
|
void |
undo()
Undo command |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTask()
| Method Detail |
|---|
public void addCommand(Command c)
Command to the command list of task
addCommand in interface Taskc - Command to add.public void addComand(List<Command> cmdList)
cmdList - the command list to addpublic void removeComannd(Command c)
Command from command list of task
removeComannd in interface Taskc - Commmand to removepublic void addPreprocesor(Command c)
Command to prepocesor command list
addPreprocesor in interface Taskc - Command to add.public void removePreprocesor(Command c)
Command from preprocesor command list
removePreprocesor in interface Taskc - Command to remove.public void addPostProcessor(Command c)
Command to postprocessor command list
addPostProcessor in interface Taskc - Command to add.public void removePostProcessor(Command c)
Command to postprocesor list of task
removePostProcessor in interface Taskc - Command to removce.public boolean execute(Object data)
execute in interface Commanddata - with command data
public void onFault(Object data)
onFault in interface Commanddata - generic command datapublic List<Command> newCommandList()
public List<Command> getCommands()
public void setCommands(List<Command> commands)
commands - list of commands to setpublic List<Command> getPostProcessors()
public void setPostProcessors(List<Command> postProcessors)
postProcessors - command list to setpublic List<Command> getPreProcessors()
public void setPreProcessors(List<Command> preProcessors)
preProcessors - command list to setspublic String getName()
getName in interface Commandpublic void setName(String name)
name - the name to setpublic void undo()
undo in interface Command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||