|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.descriptors.AbstractModuleDescriptor
com.atlassian.plugin.descriptors.UnloadableModuleDescriptor
public class UnloadableModuleDescriptor
Instances of this class represent a module which could not be loaded, not a module which can be unloaded.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
|---|
plugin, resources, singleton |
| Constructor Summary | |
|---|---|
UnloadableModuleDescriptor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorText()
|
java.lang.Object |
getModule()
The particular module object created by this plugin. |
boolean |
isEnabledByDefault()
Whether or not this plugin module is enabled by default. |
protected void |
loadClass(Plugin plugin,
org.dom4j.Element element)
Override this for module descriptors which don't expect to be able to load a class successfully |
void |
setErrorText(java.lang.String errorText)
|
void |
setKey(java.lang.String key)
Sets the key of the ModuleDescriptor This is theoretically bad, as the superclass and the interface doesn't define this method, but it's required to construct an UnloadableModuleDescriptor when we don't have the XML Element. |
void |
setName(java.lang.String name)
Sets the name of the ModuleDescriptor This is theoretically bad, as the superclass and the interface doesn't define this method, but it's required to construct an UnloadableModuleDescriptor when we don't have the XML Element. |
| Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
|---|
assertModuleClassImplements, destroy, disabled, enabled, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, init, isSingleton, isSingletonByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setPlugin, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnloadableModuleDescriptor()
| Method Detail |
|---|
public java.lang.Object getModule()
ModuleDescriptor
getModule in interface ModuleDescriptorgetModule in class AbstractModuleDescriptor
protected void loadClass(Plugin plugin,
org.dom4j.Element element)
throws PluginParseException
AbstractModuleDescriptor
loadClass in class AbstractModuleDescriptorPluginParseExceptionpublic boolean isEnabledByDefault()
ModuleDescriptor
isEnabledByDefault in interface ModuleDescriptorisEnabledByDefault in class AbstractModuleDescriptorpublic java.lang.String getErrorText()
public void setErrorText(java.lang.String errorText)
public void setKey(java.lang.String key)
key - the key of the ModuleDescriptorpublic void setName(java.lang.String name)
name - the name of the ModuleDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||