1 package org.sapia.taskman;2 3 /**4 * Models a unit of work to be executed by a <code>TaskManager</code>.5 * 6 * @author Yanick Duchesne 15-Apr-20037 * <dl>8 * <dt><b>Copyright: </b>9 * <dd>Copyright © 2002-2004 <a10 * HREF="http://www.sapia-oss.org">Sapia Open Source Software </a>. All11 * Rights Reserved.</dd>12 * </dt>13 * <dt><b>License: </b>14 * <dd>Read the license.txt file of the jar or visit the <a15 * HREF="http://www.sapia-oss.org/license.html">license page </a> at the16 * Sapia OSS web site</dd>17 * </dt>18 * </dl>19 */20 public interface Task extends java.io.Serializable {21 /**22 * Executes this task.23 * 24 * @param ctx25 * a <code>TaskContext</code>.26 */27 public void exec(TaskContext ctx);28 }29