edu.uci.isr.yancees.plugin
Class MOPluginManager

java.lang.Object
  extended byedu.uci.isr.yancees.plugin.AbstractPluginManager
      extended byedu.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(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, 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, 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 notificatoin manager, hence, avoiding naming clashes.

Method Detail

setDispatcher

public void setDispatcher(EventDispatcherInterface disp)

createMOPluginInstance

public MOPluginInterface createMOPluginInstance(java.lang.String tag,
                                                org.w3c.dom.Node subTree)
                                         throws PluginManagerException
Specified by:
createMOPluginInstance in interface MOPluginManagerInterface
Returns:
a new instance of a plugin to handle the provided tag
Throws:
an - exception in case the creation is not successfull.
PluginManagerException