KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.sapia.soto;
2
3
4 /**
5  * This interface specifies the minimal behavior of implementations
6  * of the "layer" concept.
7  * <p>
8  * The lifecycle of layers is as follows: <li>the init() method is called after init() has been called on the
9  * layer's corresponding service's init() method.
10  *
11  * @author Yanick Duchesne
12  * <dl>
13  * <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>
14  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
15  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
16  * </dl>
17  */

18 public interface Layer {
19   /**
20    * Initializes this instance.
21    *
22    * @throws Exception if an exception occurs during initialization.
23    */

24   public void init(ServiceMetaData meta) throws Exception JavaDoc;
25
26   /**
27    * Starts this instance.
28    *
29    * @throws Exception if an exception occurs during startup.
30    */

31   public void start(ServiceMetaData meta) throws Exception JavaDoc;
32
33   /**
34    * Shuts down this instance.
35    */

36   public void dispose();
37 }
38
Popular Tags