com.xpn.xwiki.wysiwyg.client.plugin.internal
Class DefaultPluginFactoryManager

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.plugin.internal.DefaultPluginFactoryManager
All Implemented Interfaces:
PluginFactoryManager

public final class DefaultPluginFactoryManager
extends java.lang.Object
implements PluginFactoryManager

Default implementation of the PluginFactoryManager. We don't plan to provide another implementation.


Constructor Summary
DefaultPluginFactoryManager()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPluginFactoryManager

public DefaultPluginFactoryManager()
Method Detail

addPluginFactory

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

Specified by:
addPluginFactory in interface PluginFactoryManager
Parameters:
factory - The plug-in factory to be registered.
Returns:
The previous plug-in factory registered with the same plug-in name.
See Also:
PluginFactoryManager.addPluginFactory(PluginFactory)

getPluginFactory

public PluginFactory getPluginFactory(java.lang.String pluginName)

Specified by:
getPluginFactory in interface PluginFactoryManager
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.
See Also:
PluginFactoryManager.getPluginFactory(String)

removePluginFactory

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

Specified by:
removePluginFactory in interface PluginFactoryManager
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.
See Also:
PluginFactoryManager.removePluginFactory(String)


Copyright © 2004-2008 XWiki. All Rights Reserved.