Class UnloadablePluginFactory

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

public final class UnloadablePluginFactory extends Object
Utility class to create UnloadablePlugin instances.
  • Constructor Details

    • UnloadablePluginFactory

      public UnloadablePluginFactory()
  • Method Details

    • 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