edu.uci.isr.yancees.plugin
Class MOPluginManager

java.lang.Object
  extended by edu.uci.isr.yancees.plugin.AbstractPluginManager
      extended by edu.uci.isr.yancees.plugin.MOPluginManager
All Implemented Interfaces:
MOPluginManagerInterface, PluginManagerInterface

public class MOPluginManager
extends AbstractPluginManager
implements MOPluginManagerInterface

Manages the plug-in instances used by the parsers (managers)


Field Summary
 
Fields inherited from class edu.uci.isr.yancees.plugin.AbstractPluginManager
factoriesMap, genericFactory, tagsMap
 
Constructor Summary
MOPluginManager()
          this is the constructor.
 
Method Summary
 MOPluginInterface createMOPluginInstance(SubscriberInterface si, SubscriptionInterface sub, java.lang.String tag, org.w3c.dom.Node subTree)
           
 void setDispatcher(EventDispatcherInterface disp)
           
 
Methods inherited from class edu.uci.isr.yancees.plugin.AbstractPluginManager
addFactory, addUnknownTagFactory, getFactoriesList, getRegisteredTags, isTagRegistered, removeFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.uci.isr.yancees.plugin.PluginManagerInterface
addFactory, addUnknownTagFactory, getFactoriesList, getRegisteredTags, isTagRegistered, removeFactory
 

Constructor Detail

MOPluginManager

public MOPluginManager()
this is the constructor. There can be many instances of the plug-in manager. This allows the subscription manager have a different plug-in manager than the Notification manager, hence, avoiding naming clashes.

Method Detail

setDispatcher

public void setDispatcher(EventDispatcherInterface disp)

createMOPluginInstance

public MOPluginInterface createMOPluginInstance(SubscriberInterface si,
                                                SubscriptionInterface sub,
                                                java.lang.String tag,
                                                org.w3c.dom.Node subTree)
                                         throws PluginManagerException
Specified by:
createMOPluginInstance in interface MOPluginManagerInterface
Parameters:
si - is a reference to the subscriber interface (a unique subscriber identification) which subscription triggered the creation of the plugins
sub - TODO
Returns:
a new instance of a plugin to handle the provided tag
Throws:
an - exception in case the creation is not successful.
PluginManagerException