edu.uci.isr.yancees.server.plugin.generic
Class GenericPlugin

java.lang.Object
  extended byedu.uci.isr.yancees.server.plugin.AbstractPlugin
      extended byedu.uci.isr.yancees.server.plugin.generic.GenericPlugin
All Implemented Interfaces:
PluginInterface, PluginListenerInterface

public class GenericPlugin
extends AbstractPlugin

The idea of this plug-in is to match unknown tags in the subscription DOM tree and perform a runtime search and installation of it in the server. This plug-in contains the logic to perform this runtime installation of new plug-ins.


Field Summary
 
Fields inherited from class edu.uci.isr.yancees.server.plugin.AbstractPlugin
myListeners, myRequiredPlugins
 
Constructor Summary
GenericPlugin(org.w3c.dom.Node subTree)
           
 
Method Summary
 void receivePluginNotification(EventInterface[] evtList, PluginInterface source)
          Receives a list of events as notifications from another plug-in
 void receivePluginNotification(EventInterface evt, PluginInterface source)
          Receives a notification from another plug-in
 
Methods inherited from class edu.uci.isr.yancees.server.plugin.AbstractPlugin
addListener, addRequiredPlugin, dispose, getExpectedPluginIDs, getFullContext, getFullPath, getId, getRequiredPluginsList, getSubtree, getTag, hasChildren, publishOutput, publishOutput, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericPlugin

public GenericPlugin(org.w3c.dom.Node subTree)
Parameters:
subTree - is the DOM tree this plugin is responsible for executing
Method Detail

receivePluginNotification

public void receivePluginNotification(EventInterface evt,
                                      PluginInterface source)
Receives a notification from another plug-in

Specified by:
receivePluginNotification in interface PluginListenerInterface
Specified by:
receivePluginNotification in class AbstractPlugin
Parameters:
evt - is the event received
source - is the plug-in sending the notification.

receivePluginNotification

public void receivePluginNotification(EventInterface[] evtList,
                                      PluginInterface source)
Receives a list of events as notifications from another plug-in

Specified by:
receivePluginNotification in interface PluginListenerInterface
Specified by:
receivePluginNotification in class AbstractPlugin
Parameters:
evtList - is the list of events received
source - is the plug-in sending the notification.