edu.uci.isr.yancees.server.plugin
Interface PluginManagerInterface

All Known Implementing Classes:
PluginManager

public interface PluginManagerInterface


Method Summary
 void addFactory(PluginFactoryInterface factory)
          Registers a new factory in the plug-in manager to process the set of tags provided
 void addGenericFactory(PluginFactoryInterface factory)
          Registers the generic factory that handles unknown tags in the subscription process
 PluginInterface createPluginInstance(java.lang.String tag, org.w3c.dom.Node subTree)
           
 PluginFactoryInterface[] getFactoriesList()
          Gets the list of all factories registered in the PluginManager
 java.lang.String[] getRegisteredTags()
           
 void removeFactory(PluginFactoryInterface factory)
          Registers a new factory in the plug-in manager
 

Method Detail

addFactory

public void addFactory(PluginFactoryInterface factory)
Registers a new factory in the plug-in manager to process the set of tags provided

Parameters:
factory - the factory instance

addGenericFactory

public void addGenericFactory(PluginFactoryInterface factory)
Registers the generic factory that handles unknown tags in the subscription process

Parameters:
factory - the factory instance

removeFactory

public void removeFactory(PluginFactoryInterface factory)
Registers a new factory in the plug-in manager


getFactoriesList

public PluginFactoryInterface[] getFactoriesList()
Gets the list of all factories registered in the PluginManager


getRegisteredTags

public java.lang.String[] getRegisteredTags()
Returns:
a list of all the supported tags in this plugin manager. In other words, returs the list of tags registered for all plugins installed.

createPluginInstance

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