KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > Service


1 package org.sapia.soto;
2
3
4 /**
5  * This interface specifies the behavior common to all Soto service
6  * implementations.
7  *
8  * @author Yanick Duchesne
9  * <dl>
10  * <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>
11  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
12  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
13  * </dl>
14  */

15 public interface Service {
16   /**
17    * Performs initialization actions.
18    *
19    * @throws Exception if a problem occurs while initializing.
20    */

21   public void init() throws Exception JavaDoc;
22
23   /**
24    * Starts this instance.
25    *
26    * @throws Exception if a problem occurs while starting.
27    */

28   public void start() throws Exception JavaDoc;
29
30   /**
31    * Shuts down this service.
32    */

33   public void dispose();
34 }
35
Popular Tags