Class UnrecognisedModuleDescriptorFactory

java.lang.Object
com.atlassian.plugin.descriptors.UnrecognisedModuleDescriptorFactory

public final class UnrecognisedModuleDescriptorFactory extends Object
Utility class to create UnloadableModuleDescriptor instances when there are problems
  • Constructor Details

    • UnrecognisedModuleDescriptorFactory

      public UnrecognisedModuleDescriptorFactory()
  • Method Details

    • createUnrecognisedModuleDescriptor

      public static UnrecognisedModuleDescriptor createUnrecognisedModuleDescriptor(Plugin plugin, Element element, Throwable e, ModuleDescriptorFactory moduleDescriptorFactory)
      Creates a new UnrecognisedModuleDescriptor, for when a problem occurs during the retrieval 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 UnrecognisedModuleDescriptor instance
      Throws:
      PluginParseException - if there was a problem constructing the UnrecognisedModuleDescriptor