com.atlassian.plugin.impl
Class UnloadablePluginFactory
java.lang.Object
com.atlassian.plugin.impl.UnloadablePluginFactory
public final class UnloadablePluginFactory
- extends Object
Utility class to create UnloadablePlugin instances.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnloadablePluginFactory
public UnloadablePluginFactory()
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 unloadableunloadableDescriptor - the ModuleDescriptor containing the error
- Returns:
- UnloadablePlugin instance
Copyright © 2014 Atlassian. All rights reserved.