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, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
public 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.ModuleDescriptor
init
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
com.atlassian.plugin.PluginParseException
public Object getModule()
getModule
in interface com.atlassian.plugin.ModuleDescriptor
getModule
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
public void enabled()
enabled
in interface com.atlassian.plugin.StateAware
enabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
public int getSequence()
public int compareTo(LifecyclePluginModuleDescriptor o)
compareTo
in interface Comparable<LifecyclePluginModuleDescriptor>
Copyright © 2003–2017 Atlassian. All rights reserved.