com.atlassian.plugin.osgi.factory.descriptor
Class ComponentImportModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Object>
com.atlassian.plugin.osgi.factory.descriptor.ComponentImportModuleDescriptor
- All Implemented Interfaces:
- ModuleDescriptor<Object>, Resourced, StateAware
public final class ComponentImportModuleDescriptor
- extends AbstractModuleDescriptor<Object>
Module descriptor for OSGi service imports. Shouldn't be directly used outside providing read-only information.
- Since:
- 2.2.0
|
Method Summary |
Object |
getModule()
The particular module object created by this plugin. |
void |
init(Plugin plugin,
org.dom4j.Element element)
Initialise a module given it's parent plugin and the XML element
representing the module. |
| Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
assertModuleClassImplements, checkPermissions, destroy, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString |
ComponentImportModuleDescriptor
public ComponentImportModuleDescriptor()
- Since:
- 2.5.0
init
public void init(@NotNull
Plugin plugin,
@NotNull
org.dom4j.Element element)
throws PluginParseException
- Description copied from interface:
ModuleDescriptor
- Initialise a module given it's parent plugin and the XML element
representing the module.
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.
- Specified by:
init in interface ModuleDescriptor<Object>- Overrides:
init in class AbstractModuleDescriptor<Object>
- Parameters:
plugin - The plugin that the module belongs to. Must not be null.element - XML element representing the module. Must not be null.
- Throws:
PluginParseException - Can be thrown if an error occurs while
parsing the XML element.
getModule
public Object getModule()
- Description copied from interface:
ModuleDescriptor
- The particular module object created by this plugin.
- Specified by:
getModule in interface ModuleDescriptor<Object>- Specified by:
getModule in class AbstractModuleDescriptor<Object>
- Returns:
- The module object created by this plugin.
- See Also:
ModuleDescriptor.getModuleClass()
Copyright © 2014 Atlassian. All rights reserved.