com.atlassian.plugin.servlet.descriptors
Class ServletContextListenerModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<javax.servlet.ServletContextListener>
com.atlassian.plugin.servlet.descriptors.ServletContextListenerModuleDescriptor
- All Implemented Interfaces:
- ModuleDescriptor<javax.servlet.ServletContextListener>, Resourced, StateAware
public class ServletContextListenerModuleDescriptor
- extends AbstractModuleDescriptor<javax.servlet.ServletContextListener>
Provides a way for plugins to declare 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.
- Since:
- 2.1.0
|
Field Summary |
protected static org.slf4j.Logger |
log
|
|
Method Summary |
javax.servlet.ServletContextListener |
getModule()
|
void |
init(Plugin plugin,
org.dom4j.Element element)
|
| Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
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, toString |
log
protected static final org.slf4j.Logger log
ServletContextListenerModuleDescriptor
public ServletContextListenerModuleDescriptor(ModuleFactory moduleFactory)
- Since:
- 2.5.0
init
public void init(@NotNull
Plugin plugin,
@NotNull
org.dom4j.Element element)
throws PluginParseException
- Specified by:
init in interface ModuleDescriptor<javax.servlet.ServletContextListener>- Overrides:
init in class AbstractModuleDescriptor<javax.servlet.ServletContextListener>
- Throws:
PluginParseException
getModule
public javax.servlet.ServletContextListener getModule()
- Specified by:
getModule in interface ModuleDescriptor<javax.servlet.ServletContextListener>- Specified by:
getModule in class AbstractModuleDescriptor<javax.servlet.ServletContextListener>
Copyright © 2015 Atlassian. All rights reserved.