public final class

UnloadablePluginFactory

extends Object
java.lang.Object
   ↳ com.atlassian.plugin.impl.UnloadablePluginFactory

Class Overview

Utility class to create UnloadablePlugin instances.

Summary

Public Constructors
UnloadablePluginFactory()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UnloadablePluginFactory ()

Public Methods

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

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