public class ServletContextParamModuleDescriptor extends AbstractModuleDescriptor<Void>
ServletContext.key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton| Constructor and Description |
|---|
ServletContextParamModuleDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
Void |
getModule()
The particular module object created by this plugin.
|
String |
getParamName() |
String |
getParamValue() |
void |
init(Plugin plugin,
org.dom4j.Element element)
Initialise a module given it's parent plugin and the XML element
representing the module.
|
protected void |
provideValidationRules(ValidationPattern pattern)
Provides validation rules for the pattern
|
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, satisfiesMinJavaVersion, setPlugin, toStringpublic 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
AbstractModuleDescriptor.enabled()
method instead.
init in interface ModuleDescriptor<Void>init in class AbstractModuleDescriptor<Void>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<Void>pattern - The validation patternpublic String getParamName()
public String getParamValue()
public Void getModule()
ModuleDescriptorgetModule in interface ModuleDescriptor<Void>getModule in class AbstractModuleDescriptor<Void>ModuleDescriptor.getModuleClass()Copyright © 2014 Atlassian. All rights reserved.