Package com.atlassian.plugin.descriptors
Class UnrecognisedModuleDescriptorFactory
java.lang.Object
com.atlassian.plugin.descriptors.UnrecognisedModuleDescriptorFactory
Utility class to create UnloadableModuleDescriptor instances when there are problems
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnrecognisedModuleDescriptorcreateUnrecognisedModuleDescriptor(Plugin plugin, Element element, Throwable e, ModuleDescriptorFactory moduleDescriptorFactory) Creates a new UnrecognisedModuleDescriptor, for when a problem occurs during the retrieval of the ModuleDescriptor itself.
-
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 toelement- the XML Element used to construct the ModuleDescriptore- the ThrowablemoduleDescriptorFactory- a ModuleDescriptorFactory used to retrieve ModuleDescriptor instances- Returns:
- a new UnrecognisedModuleDescriptor instance
- Throws:
PluginParseException- if there was a problem constructing the UnrecognisedModuleDescriptor
-