Package com.atlassian.plugin.impl
Class UnloadablePluginFactory
java.lang.Object
com.atlassian.plugin.impl.UnloadablePluginFactory
Utility class to create UnloadablePlugin instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnloadablePlugincreateUnloadablePlugin(Plugin oldPlugin) Creates an UnloadablePlugin instance from a given plugin, when there were problems loading the modules or the plugin itselfstatic UnloadablePlugincreateUnloadablePlugin(Plugin oldPlugin, UnloadableModuleDescriptor unloadableDescriptor) Creates an UnloadablePlugin instance from a given plugin.
-
Constructor Details
-
UnloadablePluginFactory
public UnloadablePluginFactory()
-
-
Method Details
-
createUnloadablePlugin
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
-