Class DispatchTask

  extended by
      extended by
          extended by
All Implemented Interfaces:
java.lang.Cloneable, Dispatchable
Direct Known Subclasses:

public abstract class DispatchTask
extends Task
implements Dispatchable

Tasks extending this class may contain multiple actions. The method that is invoked for execution depends upon the value of the action attribute of the task.
<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.

Field Summary
Fields inherited from class
target, taskName, taskType, wrapper
Fields inherited from class
description, location, project
Constructor Summary
Method Summary
 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.
Methods inherited from class
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DispatchTask()
Method Detail


public java.lang.String getActionParameterName()
Get the action parameter name.

Specified by:
getActionParameterName in interface Dispatchable
the String "action" by default (can be overridden).


public void setAction(java.lang.String action)
Set the action.

action - the method name.


public java.lang.String getAction()
Get the action.

the action.