1 package net.sourceforge.basher.internal.impl; 2 3 import java.util.List; 4 import java.util.ArrayList; 5 6 import net.sourceforge.basher.tasks.AbstractTask; 7 import net.sourceforge.basher.Phase; 8 9 /** Empty task extending the <code>AbstractTask</code> class. This class is used if the <code>TaskManager</code> receives 10 * a class (as a task) which neither extends <code>AbstractTask</code> nor implements <code>Task</code> and is declared 11 * final. The task will be wrapped by this class and calls to the task are proxied. 12 * 13 * @author Johan Lindquist 14 * @version $Revision$ 15 */ 16 public abstract class DecoratedTask extends AbstractTask 17 { 18 public void executeTask() throws Throwable 19 { 20 doExecuteTask(); 21 } 22 23 protected abstract void doExecuteTask() throws Throwable; 24 25 }