org.xwiki.gwt.wysiwyg.client.plugin
Interface PluginFactoryManager


public interface PluginFactoryManager

Manages the list of available plug-in factories.

Version:
$Id$

Method Summary
 PluginFactory addPluginFactory(PluginFactory factory)
          Registers a new plug-in factory.
 PluginFactory getPluginFactory(java.lang.String pluginName)
           
 PluginFactory removePluginFactory(java.lang.String pluginName)
          Unregisters the factory for the given plug-in name.
 

Method Detail

addPluginFactory

PluginFactory addPluginFactory(PluginFactory factory)
Registers a new plug-in factory.

Parameters:
factory - The plug-in factory to be registered.
Returns:
The previous plug-in factory registered with the same plug-in name.
See Also:
PluginFactory.getPluginName()

getPluginFactory

PluginFactory getPluginFactory(java.lang.String pluginName)
Parameters:
pluginName - The name of the plug-in whose factory should be returned.
Returns:
The factory of the specified plug-in or null is there's no factory for the specified plug-in.

removePluginFactory

PluginFactory removePluginFactory(java.lang.String pluginName)
Unregisters the factory for the given plug-in name.

Parameters:
pluginName - The name of the plug-in whose factory should be unregistered.
Returns:
The factory that was unregistered, or null if no factory has been registered for the given plug-in name.


Copyright © 2004-2011 XWiki. All Rights Reserved.