public class BambooEventListenerModuleDescriptor extends AbstractBambooModuleDescriptor<Object>
Constructor and Description |
---|
BambooEventListenerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
disabled() |
void |
enabled() |
protected boolean |
isMutable()
Whether modules of this descriptor are supposed to be mutated by external components.
|
getElementAsString, getFreeMarkerResourceLocation, getModule, getVelocityResourceLocation, instantiateClass, postInit, preInit
assertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, init, isEnabled, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString
public BambooEventListenerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, com.atlassian.event.api.EventPublisher eventPublisher)
protected boolean isMutable()
AbstractBambooModuleDescriptor
true
, which means a fresh module instance will be created each time AbstractBambooModuleDescriptor.getModule()
is called.
Subclasses that are safe to cache a singleton instance of module throughout the life span of this descriptor
can override this method and return false
.
isMutable
in class AbstractBambooModuleDescriptor<Object>
true
if modules of this descriptor are mutablepublic void enabled()
enabled
in interface com.atlassian.plugin.StateAware
enabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Object>
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class AbstractBambooModuleDescriptor<Object>
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.