public abstract class DispatchTask extends Task implements Dispatchable
Example:
<mytask action="list"/> will invoke the method with the signature public void list() in mytask's class. If the action attribute is not defined in the task or is empty, the execute() method will be called.description, location, project| Constructor and Description |
|---|
DispatchTask() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAction()
Get the action.
|
java.lang.String |
getActionParameterName()
Get the action parameter name.
|
void |
setAction(java.lang.String action)
Set the action.
|
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic java.lang.String getActionParameterName()
getActionParameterName in interface DispatchableString "action" by default (can be overridden).public void setAction(java.lang.String action)
action - the method name.public java.lang.String getAction()