com.go.trove.util.plugin
Class PluginAdapter

java.lang.Object
  |
  +--com.go.trove.util.plugin.PluginAdapter
All Implemented Interfaces:
java.util.EventListener, Plugin, PluginListener

public class PluginAdapter
extends java.lang.Object
implements Plugin

Version:
1 - 01/03/23
Author:
Scott Jappinen

Constructor Summary
PluginAdapter()
           
 
Method Summary
 void destroy()
          Called by the host container when the plugin is no longer needed.
 java.lang.String getName()
          Return the name of the Plugin.
 void init(PluginConfig config)
          Initializes resources used by the Plugin.
 void pluginAdded(PluginEvent event)
          This method is invoked whenever a Plugin has added itself to the PluginContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginAdapter

public PluginAdapter()
Method Detail

init

public void init(PluginConfig config)
          throws PluginException
Initializes resources used by the Plugin.
Specified by:
init in interface Plugin
Parameters:
config - the plugins's configuration object

getName

public java.lang.String getName()
Return the name of the Plugin.
Specified by:
getName in interface Plugin
Returns:
String the name of the plugin.

destroy

public void destroy()
Called by the host container when the plugin is no longer needed.
Specified by:
destroy in interface Plugin

pluginAdded

public void pluginAdded(PluginEvent event)
This method is invoked whenever a Plugin has added itself to the PluginContext.
Specified by:
pluginAdded in interface PluginListener
Parameters:
event - a PluginEvent event object.