Top Description Fields Constructors Methods
org.apache.tools.ant.dispatch

public abstract Class DispatchTask

extends Task
implements Dispatchable
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.dispatch.Dispatchable
Known Direct Subclasses
org.apache.tools.ant.taskdefs.optional.unix.Symlink
Imports
org.apache.tools.ant.Task

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.

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.

Field Summary

Modifier and TypeField and Description
private String
Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the action.
getAction
()

Get the action.

public String

Returns:

the String "action" by default (can be overridden).
getActionParameterName
()

Implements org.apache.tools.ant.dispatch.Dispatchable.getActionParameterName.

Get the action parameter name.
public void
setAction(String
the method name.
action
)

Set the action.

Inherited from org.apache.tools.ant.Task:
bindToOwnerexecutegetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

actionback to summary
private String action

Constructor Detail

DispatchTaskback to summary
public DispatchTask()

Method Detail

getActionback to summary
public String getAction()

Get the action.

Returns:String

the action.

getActionParameterNameback to summary
public String getActionParameterName()

Implements org.apache.tools.ant.dispatch.Dispatchable.getActionParameterName.

Get the action parameter name.

Returns:String

the String "action" by default (can be overridden).

Annotations
@Override
setActionback to summary
public void setAction(String action)

Set the action.

Parameters
action:String

the method name.