Class DispatchTask

  • 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.
    • Constructor Detail

      • DispatchTask

        public DispatchTask()
    • Method Detail

      • getActionParameterName

        public java.lang.String getActionParameterName()
        Get the action parameter name.
        Specified by:
        getActionParameterName in interface Dispatchable
        the String "action" by default (can be overridden).
      • setAction

        public void setAction​(java.lang.String action)
        Set the action.
        action - the method name.
      • getAction

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