public abstract class BaseServletModuleDescriptor<T> extends AbstractModuleDescriptor<T>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources| Constructor and Description |
|---|
BaseServletModuleDescriptor(ModuleFactory moduleCreator) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getInitParams() |
List<String> |
getPaths() |
void |
init(Plugin plugin,
org.dom4j.Element element)
Initialise a module given it's parent plugin and the XML element
representing the module.
|
boolean |
isAsyncSupported() |
protected void |
provideValidationRules(ValidationPattern pattern)
Provides validation rules for the pattern
|
assertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDisplayNamepublic BaseServletModuleDescriptor(ModuleFactory moduleCreator)
moduleCreator - public void init(Plugin plugin, 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 StateAware.enabled()
method instead.
init in interface ModuleDescriptor<T>init in class AbstractModuleDescriptor<T>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.protected void provideValidationRules(ValidationPattern pattern)
AbstractModuleDescriptorprovideValidationRules in class AbstractModuleDescriptor<T>pattern - The validation patternpublic boolean isAsyncSupported()
Copyright © 2019 Atlassian. All rights reserved.