net.sourceforge.basher.internal.impl
Class DecoratedTask

java.lang.Object
  extended by net.sourceforge.basher.tasks.AbstractTask
      extended by net.sourceforge.basher.internal.impl.DecoratedTask
All Implemented Interfaces:
Task

public abstract class DecoratedTask
extends AbstractTask

Empty task extending the AbstractTask class. This class is used if the TaskManager receives a class (as a task) which neither extends AbstractTask nor implements Task and is declared final. The task will be wrapped by this class and calls to the task are proxied.

Version:
$Revision$
Author:
Johan Lindquist

Field Summary
 
Fields inherited from class net.sourceforge.basher.tasks.AbstractTask
_log
 
Constructor Summary
DecoratedTask()
           
 
Method Summary
protected abstract  void doExecuteTask()
           
 void executeTask()
          Main method called by a component to execute this Task.
 
Methods inherited from class net.sourceforge.basher.tasks.AbstractTask
equals, failed, failed, hashCode, notRun, setLog, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecoratedTask

public DecoratedTask()
Method Detail

executeTask

public void executeTask()
                 throws Throwable
Description copied from interface: Task
Main method called by a component to execute this Task. This should ensure that counters of failures/successes are kept up to date.

Throws:
Throwable - The re-thrown exception thrown by the task

doExecuteTask

protected abstract void doExecuteTask()
                               throws Throwable
Throws:
Throwable


Copyright © 2006-2010 Basher Team. All Rights Reserved.