com.atlassian.plugin.descriptors
Class UnrecognisedModuleDescriptorFactory

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

public final class UnrecognisedModuleDescriptorFactory
extends java.lang.Object

Utility class to create UnloadableModuleDescriptor instances when there are problems


Constructor Summary
UnrecognisedModuleDescriptorFactory()
           
 
Method Summary
static UnrecognisedModuleDescriptor createUnrecognisedModuleDescriptor(Plugin plugin, org.dom4j.Element element, java.lang.Throwable e, ModuleDescriptorFactory moduleDescriptorFactory)
          Creates a new UnrecognisedModuleDescriptor, for when a problem occurs during the retrieval of the ModuleDescriptor itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnrecognisedModuleDescriptorFactory

public UnrecognisedModuleDescriptorFactory()
Method Detail

createUnrecognisedModuleDescriptor

public static UnrecognisedModuleDescriptor createUnrecognisedModuleDescriptor(Plugin plugin,
                                                                              org.dom4j.Element element,
                                                                              java.lang.Throwable e,
                                                                              ModuleDescriptorFactory moduleDescriptorFactory)
                                                                       throws PluginParseException
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 UnloadableModuleDescriptor instance
Throws:
PluginParseException - if there was a problem constructing the UnloadableModuleDescriptor


Copyright © 2013 Atlassian. All Rights Reserved.