KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > taskman > examples > HelloWorldTask


1 package org.sapia.taskman.examples;
2
3 import org.sapia.taskman.Task;
4 import org.sapia.taskman.TaskContext;
5
6 /**
7  * @author Yanick Duchesne 1-May-2003
8  */

9 public class HelloWorldTask implements Task {
10   /**
11    * Constructor for HelloWorldTask.
12    */

13   public HelloWorldTask() {
14     super();
15   }
16
17   /**
18    * @see org.sapia.taskman.Task#exec(TaskContext)
19    */

20   public void exec(TaskContext ctx) {
21     ctx.getTaskOutput().debug("Hello World");
22   }
23 }
24
Popular Tags