public class LifecyclePluginModuleDescriptor extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor implements Comparable<LifecyclePluginModuleDescriptor>
A lifecycle plugin module must either implement LifecycleItem, or ServletContextListener. The
latter will automatically be wrapped in a ServletContextListenerWrapper by the descriptor, so
getModule() will always return a LifecycleItem instance.
Each module has a sequence number. On startup, the modules will be invoked in ascending order of sequence (lowest to highest), and then on shutdown, the order will be reversed.
| Constructor and Description |
|---|
LifecyclePluginModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LifecyclePluginModuleDescriptor o) |
void |
disabled() |
void |
enabled() |
Object |
getModule() |
int |
getSequence() |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element) |
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, toStringpublic LifecyclePluginModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
public void init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
throws com.atlassian.plugin.PluginParseException
init in interface com.atlassian.plugin.ModuleDescriptorinit in class com.atlassian.plugin.descriptors.AbstractModuleDescriptorcom.atlassian.plugin.PluginParseExceptionpublic Object getModule()
getModule in interface com.atlassian.plugin.ModuleDescriptorgetModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptorpublic void enabled()
enabled in interface com.atlassian.plugin.StateAwareenabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptorpublic void disabled()
disabled in interface com.atlassian.plugin.StateAwaredisabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptorpublic int getSequence()
public int compareTo(LifecyclePluginModuleDescriptor o)
compareTo in interface Comparable<LifecyclePluginModuleDescriptor>Copyright © 2003–2022 Atlassian. All rights reserved.