KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > server > command > Command


1 package org.sapia.ubik.rmi.server.command;
2
3
4 /**
5  * A command class - implements the Command pattern.
6  *
7  * @author Yanick Duchesne
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public abstract class Command implements Executable, java.io.Serializable JavaDoc {
15   /**
16    * Constructor for Command.
17    */

18   public Command() {
19     super();
20   }
21
22   /***
23    * This method executes this command.
24    *
25    * @return any value returned by this method.
26    * @throws Throwable if an error occurs executing this command.
27    */

28   public abstract Object JavaDoc execute() throws Throwable JavaDoc;
29 }
30
Popular Tags