public class ComponentModuleDescriptor extends AbstractModuleDescriptor<Object>
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton| Constructor and Description |
|---|
ComponentModuleDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getModule()
The particular module object created by this plugin.
|
String |
getModuleClassName()
Deprecated.
- BEWARE that this is a temporary method that will not exist for long. Deprecated since 2.3.0
|
void |
init(Plugin plugin,
org.dom4j.Element element)
Initialise a module given it's parent plugin and the XML element
representing the module.
|
protected void |
loadClass(Plugin plugin,
String clazz)
Loads the module class that this descriptor provides, and will not
necessarily be the implementation class.
|
assertModuleClassImplements, checkPermissions, destroy, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toStringpublic void init(@NotNull
Plugin plugin,
@NotNull
org.dom4j.Element element)
throws PluginParseException
ModuleDescriptor
Since atlassian-plugins v2.2, you can no longer load classes from the
plugin in this method, because the OSGi bundle that they will live in is
not built yet. Load classes in the
AbstractModuleDescriptor.enabled()
method instead.
init in interface ModuleDescriptor<Object>init in class AbstractModuleDescriptor<Object>plugin - The plugin that the module belongs to. Must not be null.element - XML element representing the module. Must not be null.PluginParseException - Can be thrown if an error occurs while
parsing the XML element.protected void loadClass(Plugin plugin, String clazz) throws PluginParseException
AbstractModuleDescriptorloadClass in class AbstractModuleDescriptor<Object>clazz - The module class name to loadPluginParseExceptionpublic Object getModule()
ModuleDescriptorgetModule in interface ModuleDescriptor<Object>getModule in class AbstractModuleDescriptor<Object>ModuleDescriptor.getModuleClass()public String getModuleClassName()
getModuleClassName in class AbstractModuleDescriptor<Object>Copyright © 2014 Atlassian. All rights reserved.