|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.plugin.descriptors.UnloadableModuleDescriptor
public final 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 |
|---|
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton |
| Constructor Summary | |
|---|---|
UnloadableModuleDescriptor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorText()
|
T |
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 |
protected void |
loadClass(Plugin plugin,
java.lang.String clazz)
Loads the module class that this descriptor provides, and will not necessarily be the implementation class. |
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 module descriptor 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 module descriptor when we don't have the XML Element. |
| Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
|---|
assertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, init, isSingleton, isSingletonByDefault, isSystemModule, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnloadableModuleDescriptor()
| Method Detail |
|---|
protected void loadClass(Plugin plugin,
org.dom4j.Element element)
throws PluginParseException
AbstractModuleDescriptor
loadClass in class AbstractModuleDescriptor<java.lang.Void>PluginParseException
protected void loadClass(Plugin plugin,
java.lang.String clazz)
throws PluginParseException
AbstractModuleDescriptor
loadClass in class AbstractModuleDescriptor<java.lang.Void>clazz - The module class name to load
PluginParseExceptionpublic final java.lang.String getErrorText()
public final void setErrorText(java.lang.String errorText)
public final T getModule()
ModuleDescriptor
getModule in interface ModuleDescriptor<T>getModule in class AbstractModuleDescriptor<T>ModuleDescriptor.getModuleClass()public final boolean isEnabledByDefault()
ModuleDescriptor
isEnabledByDefault in interface ModuleDescriptor<T>isEnabledByDefault in class AbstractModuleDescriptor<T>true if this plugin module is enabled by default.public final void setKey(java.lang.String key)
key - the key of the ModuleDescriptorpublic final 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 | |||||||||