KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
12  * When a service implementation implements this interface it knows about
13  * registration events in the kernel related to it. Its registration as well
14  * as registration of services that have dependency relationship with it.
15  *
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1.1.1 $
18  */

19 public interface Registration
20 {
21    /**
22     * Callback for registration.
23     */

24    void registered(Context ctx);
25
26    /**
27     * Callback for unregistration.
28     */

29    void unregister();
30
31    /**
32     * Add a service it depends on.
33     */

34    void addIDependOn(ServiceImplementation implementation);
35
36    /**
37     * Remove a service it depends on.
38     */

39    void removeIDependOn(ServiceImplementation implementation);
40
41    /**
42     * Add a service depending on this one.
43     */

44    void addDependsOnMe(ServiceImplementation implementation);
45
46    /**
47     * Remove a service depending on this one.
48     */

49    void removeDependsOnMe(ServiceImplementation implementation);
50 }
51
Popular Tags