public class ComponentModuleDescriptor extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
com.atlassian.plugin.osgi.factory.descriptor.ComponentModuleDescriptor
.
Plugins 1 components don't have to include an interface, will be put into our PicoContainer, and can replace core JIRA components.
Plugins 2 components have to include an interface because they are managed by the Spring dependency manager, and CANNOT replace core JIRA components.
com.atlassian.plugin.osgi.factory.descriptor.ComponentModuleDescriptor
Constructor and Description |
---|
ComponentModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) |
Modifier and Type | Method and Description |
---|---|
void |
disabled() |
void |
enabled() |
Void |
getModule() |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element) |
void |
registerComponent(ComponentContainer componentContainer)
Registers this module's component with the given container.
|
void |
registerComponent(ComponentManager componentManager)
Registers this module's component with the component manager.
|
void |
unregisterComponent(ComponentManager componentManager)
Unregisters this module's component from the
ComponentManager . |
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
public ComponentModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
public void enabled()
enabled
in interface com.atlassian.plugin.StateAware
enabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
public Void getModule()
public void registerComponent(@Nonnull ComponentContainer componentContainer)
componentContainer
- the containerpublic void registerComponent(ComponentManager componentManager)
componentManager
- the component managerpublic void unregisterComponent(ComponentManager componentManager)
ComponentManager
.componentManager
- the component managerCopyright © 2002-2023 Atlassian. All Rights Reserved.