com.atlassian.plugin.impl
Class UnloadablePluginFactory

java.lang.Object
  extended by com.atlassian.plugin.impl.UnloadablePluginFactory

public final class UnloadablePluginFactory
extends java.lang.Object

Utility class to create UnloadablePlugin instances.


Constructor Summary
UnloadablePluginFactory()
           
 
Method Summary
static UnloadablePlugin createUnloadablePlugin(Plugin oldPlugin)
          Creates an UnloadablePlugin instance from a given plugin, when there were problems loading the modules or the plugin itself
static UnloadablePlugin createUnloadablePlugin(Plugin oldPlugin, UnloadableModuleDescriptor unloadableDescriptor)
          Creates an UnloadablePlugin instance from a given plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnloadablePluginFactory

public UnloadablePluginFactory()
Method Detail

createUnloadablePlugin

public static UnloadablePlugin createUnloadablePlugin(Plugin oldPlugin)
Creates an UnloadablePlugin instance from a given plugin, when there were problems loading the modules or the plugin itself

Parameters:
oldPlugin - the Plugin that is unloadable
Returns:
UnloadablePlugin instance

createUnloadablePlugin

public static UnloadablePlugin createUnloadablePlugin(Plugin oldPlugin,
                                                      UnloadableModuleDescriptor unloadableDescriptor)
Creates an UnloadablePlugin instance from a given plugin. It also allows a problematic ModuleDescriptor to be passed in, which will replace the existing descriptor with the same key in the new plugin.

Parameters:
oldPlugin - the Plugin that is unloadable
unloadableDescriptor - the ModuleDescriptor containing the error
Returns:
UnloadablePlugin instance


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.