public class ServletContextListenerModuleDescriptor extends AbstractModuleDescriptor<javax.servlet.ServletContextListener>
ServletContextListeners so they can be notified when the
ServletContext is created for the plugin. Implementors need to extend this class and implement the
{#link autowireObject} method.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton| Constructor and Description |
|---|
ServletContextListenerModuleDescriptor(ModuleFactory moduleFactory) |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.ServletContextListener |
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, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toStringpublic ServletContextListenerModuleDescriptor(ModuleFactory moduleFactory)
public void init(@NotNull
Plugin plugin,
@NotNull
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
AbstractModuleDescriptor.enabled()
method instead.
init in interface ModuleDescriptor<javax.servlet.ServletContextListener>init in class AbstractModuleDescriptor<javax.servlet.ServletContextListener>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 javax.servlet.ServletContextListener getModule()
ModuleDescriptorgetModule in interface ModuleDescriptor<javax.servlet.ServletContextListener>getModule in class AbstractModuleDescriptor<javax.servlet.ServletContextListener>ModuleDescriptor.getModuleClass()Copyright © 2014 Atlassian. All rights reserved.