public final class

UnloadableModuleDescriptorFactory

extends Object
java.lang.Object
   ↳ com.atlassian.plugin.descriptors.UnloadableModuleDescriptorFactory

Class Overview

Utility class to create UnloadableModuleDescriptor instances when there are problems

Summary

Public Constructors
UnloadableModuleDescriptorFactory()
Public Methods
static UnloadableModuleDescriptor createUnloadableModuleDescriptor(Plugin plugin, ModuleDescriptor<?> descriptor, Throwable e)
Creates a new UnloadableModuleDescriptor based on an existing ModuleDescriptor, descriptor This method uses the information in an existing descriptor to construct a new UnloadableModuleDescriptor.
static UnloadableModuleDescriptor createUnloadableModuleDescriptor(Plugin plugin, Element element, Throwable e, ModuleDescriptorFactory moduleDescriptorFactory)
Creates a new UnloadableModuleDescriptor, for when a problem occurs during the construction of the ModuleDescriptor itself.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UnloadableModuleDescriptorFactory ()

Public Methods

public static UnloadableModuleDescriptor createUnloadableModuleDescriptor (Plugin plugin, ModuleDescriptor<?> descriptor, Throwable e)

Creates a new UnloadableModuleDescriptor based on an existing ModuleDescriptor, descriptor This method uses the information in an existing descriptor to construct a new UnloadableModuleDescriptor.

Parameters
plugin the Plugin the ModuleDescriptor belongs to
descriptor the ModuleDescriptor that reported an error
e the Throwable
Returns
  • a new UnloadableModuleDescriptor instance

public static UnloadableModuleDescriptor createUnloadableModuleDescriptor (Plugin plugin, Element element, Throwable e, ModuleDescriptorFactory moduleDescriptorFactory)

Creates a new UnloadableModuleDescriptor, for when a problem occurs during the construction of the ModuleDescriptor itself. This instance has the same information as the original ModuleDescriptor, but also contains an error message that reports the error.

Parameters
plugin the Plugin the ModuleDescriptor belongs to
element the XML Element used to construct the ModuleDescriptor
e the Throwable
moduleDescriptorFactory a ModuleDescriptorFactory used to retrieve ModuleDescriptor instances
Returns
  • a new UnloadableModuleDescriptor instance
Throws
PluginParseException if there was a problem constructing the UnloadableModuleDescriptor