public class EventListenerModuleDescriptor extends AbstractModuleDescriptor<Object>
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources| Constructor and Description |
|---|
EventListenerModuleDescriptor(ModuleFactory moduleFactory,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
disabled()
Disables the module descriptor.
|
void |
enabled()
Enables the descriptor by loading the module class.
|
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.
|
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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDisplayNamepublic EventListenerModuleDescriptor(ModuleFactory moduleFactory, com.atlassian.event.api.EventPublisher eventPublisher)
public void init(@Nonnull Plugin plugin, @Nonnull 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 StateAware.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.public Object getModule()
ModuleDescriptorgetModule in interface ModuleDescriptor<Object>getModule in class AbstractModuleDescriptor<Object>ModuleDescriptor.getModuleClass()public void enabled()
AbstractModuleDescriptorenabled in interface StateAwareenabled in class AbstractModuleDescriptor<Object>public void disabled()
AbstractModuleDescriptordisabled in interface StateAwaredisabled in class AbstractModuleDescriptor<Object>Copyright © 2019 Atlassian. All rights reserved.