com.atlassian.plugin.servlet.descriptors
Class ServletContextParamModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
com.atlassian.plugin.servlet.descriptors.ServletContextParamModuleDescriptor
- All Implemented Interfaces:
- ModuleDescriptor<Void>, Resourced, StateAware
public class ServletContextParamModuleDescriptor
- extends AbstractModuleDescriptor<Void>
Allows plugin developers to specify init parameters they would like added to the plugin local
ServletContext.
- Since:
- 2.1.0
| Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
assertModuleClassImplements, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, satisfiesMinJavaVersion, setPlugin, toString |
ServletContextParamModuleDescriptor
public ServletContextParamModuleDescriptor()
init
public void init(Plugin plugin,
org.dom4j.Element element)
throws PluginParseException
- Description copied from interface:
ModuleDescriptor
- Initialise a module given it's parent plugin and the XML element
representing the module.
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.
- Specified by:
init in interface ModuleDescriptor<Void>- Overrides:
init in class AbstractModuleDescriptor<Void>
- Parameters:
plugin - The plugin that the module belongs to. Must not be null.element - XML element representing the module. Must not be null.
- Throws:
PluginParseException - Can be thrown if an error occurs while
parsing the XML element.
provideValidationRules
protected void provideValidationRules(ValidationPattern pattern)
- Description copied from class:
AbstractModuleDescriptor
- Provides validation rules for the pattern
- Overrides:
provideValidationRules in class AbstractModuleDescriptor<Void>
- Parameters:
pattern - The validation pattern
getParamName
public String getParamName()
getParamValue
public String getParamValue()
getModule
public Void getModule()
- Description copied from interface:
ModuleDescriptor
- The particular module object created by this plugin.
- Specified by:
getModule in interface ModuleDescriptor<Void>- Specified by:
getModule in class AbstractModuleDescriptor<Void>
- Returns:
- The module object created by this plugin.
- See Also:
ModuleDescriptor.getModuleClass()
Copyright © 2012 Atlassian. All Rights Reserved.