com.atlassian.plugin.descriptors
Class UnloadableModuleDescriptorFactory
java.lang.Object
com.atlassian.plugin.descriptors.UnloadableModuleDescriptorFactory
public final class UnloadableModuleDescriptorFactory
- extends java.lang.Object
Utility class to create UnloadableModuleDescriptor instances when there are problems
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnloadableModuleDescriptorFactory
public UnloadableModuleDescriptorFactory()
createUnloadableModuleDescriptor
public static UnloadableModuleDescriptor createUnloadableModuleDescriptor(Plugin plugin,
org.dom4j.Element element,
java.lang.Throwable e,
ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
- 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 toelement - the XML Element used to construct the ModuleDescriptore - the ThrowablemoduleDescriptorFactory - a ModuleDescriptorFactory used to retrieve ModuleDescriptor instances
- Returns:
- a new UnloadableModuleDescriptor instance
- Throws:
PluginParseException - if there was a problem constructing the UnloadableModuleDescriptor
createUnloadableModuleDescriptor
public static UnloadableModuleDescriptor createUnloadableModuleDescriptor(Plugin plugin,
ModuleDescriptor<?> descriptor,
java.lang.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 todescriptor - the ModuleDescriptor that reported an errore - the Throwable
- Returns:
- a new UnloadableModuleDescriptor instance
Copyright © 2013 Atlassian. All Rights Reserved.