KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > go > trove > util > plugin > PluginAdapter


1 /**
2  * PluginAdapter.java
3  *
4  * Copyright (c) 1999-2001 Disney Internet Group, Inc. All Rights Reserved.
5  *
6  * Original author: Scott Jappinen (scott.jappinen@dig.com)
7  *
8  * $Author:: $
9  * $Revision:: $
10  * $Date:: $
11  */

12 package com.go.trove.util.plugin;
13
14 /**
15  *
16  *
17  * @author Scott Jappinen
18  * @version <!--$$Revision:--> 1 <!-- $-->-<!--$$JustDate:--> 01/03/23 <!-- $-->
19  */

20 public class PluginAdapter implements Plugin {
21
22     /**
23      * Initializes resources used by the Plugin.
24      *
25      * @param config the plugins's configuration object
26      */

27     public void init(PluginConfig config) throws PluginException {}
28     
29     /**
30      * Return the name of the Plugin.
31      *
32      * @return String the name of the plugin.
33      */

34     public String JavaDoc getName() {
35         return null;
36     }
37     
38     /**
39      * Called by the host container when the plugin is no longer needed.
40      */

41     public void destroy() {}
42
43     /**
44      * This method is invoked whenever a Plugin has added itself to the PluginContext.
45      *
46      * @param event a PluginEvent event object.
47      */

48     public void pluginAdded(PluginEvent event) {}
49     
50 }
51
52
Popular Tags