KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > kernel > Context


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.kernel;
10
11 import org.jboss.portal.server.kernel.state.State;
12
13 /**
14  * Provided by the kernel to the service which has access to informations about its state.
15  *
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1.1.1 $
18  */

19 public interface Context
20 {
21
22    /**
23     * Returns the current state of the service.
24     */

25    State getState();
26
27    /**
28     * Returns the current service ID for this service.
29     */

30    ServiceID getID();
31
32    // todo : signal we have (unexpectedly) failed
33
// void fail();
34
}
35
Popular Tags