KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > plugins > PluginService


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.plugins;
10
11 import org.jboss.portal.common.plugin.AbstractPlugin;
12 import org.jboss.portal.server.kernel.Context;
13 import org.jboss.portal.server.kernel.Registration;
14 import org.jboss.portal.server.kernel.Service;
15 import org.jboss.portal.server.kernel.ServiceImplementation;
16
17 /**
18  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
19  * @version $Revision: 1.2 $
20  */

21 public abstract class PluginService
22    extends AbstractPlugin
23    implements Service, Registration
24 {
25
26    protected Context ctx;
27
28    public void create() throws Exception JavaDoc
29    {
30    }
31
32    public void start() throws Exception JavaDoc
33    {
34    }
35
36    public void stop()
37    {
38    }
39
40    public void destroy()
41    {
42    }
43
44    public void addDependsOnMe(ServiceImplementation implementation)
45    {
46    }
47
48    public void addIDependOn(ServiceImplementation implementation)
49    {
50    }
51
52    public void removeDependsOnMe(ServiceImplementation implementation)
53    {
54    }
55
56    public void removeIDependOn(ServiceImplementation implementation)
57    {
58    }
59
60    public void registered(Context ctx)
61    {
62       this.ctx = ctx;
63    }
64
65    public void unregister()
66    {
67       this.ctx = null;
68    }
69 }
70
Popular Tags