com.atlassian.plugin.web.descriptors
Class DefaultWebSectionModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.plugin.web.descriptors.AbstractWebFragmentModuleDescriptor<java.lang.Void>
com.atlassian.plugin.web.descriptors.DefaultWebSectionModuleDescriptor
- All Implemented Interfaces:
- ModuleDescriptor<java.lang.Void>, Resourced, StateAware, WebFragmentModuleDescriptor<java.lang.Void>, WebSectionModuleDescriptor<java.lang.Void>, WeightedDescriptor
public class DefaultWebSectionModuleDescriptor
- extends AbstractWebFragmentModuleDescriptor<java.lang.Void>
- implements WebSectionModuleDescriptor<java.lang.Void>
Represents a web section - that is a collection of web items.
|
Method Summary |
java.lang.String |
getLocation()
|
java.lang.Void |
getModule()
The particular module object created by this plugin. |
java.lang.Class<java.lang.Void> |
getModuleClass()
The class of the module this descriptor creates. |
void |
init(Plugin plugin,
org.dom4j.Element element)
Initialise a module given it's parent plugin and the XML element representing the module. |
| Methods inherited from class com.atlassian.plugin.web.descriptors.AbstractWebFragmentModuleDescriptor |
disabled, enabled, getCondition, getContextProvider, getTooltip, getWebLabel, getWebParams, getWeight, makeCondition, makeConditions, makeConditions, makeContextProvider, setWebInterfaceManager |
| Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
assertModuleClassImplements, destroy, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.plugin.ModuleDescriptor |
destroy, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getName, getParams, getPlugin, getPluginKey, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion |
DefaultWebSectionModuleDescriptor
public DefaultWebSectionModuleDescriptor(WebInterfaceManager webInterfaceManager)
DefaultWebSectionModuleDescriptor
public DefaultWebSectionModuleDescriptor()
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<java.lang.Void>- Overrides:
init in class AbstractWebFragmentModuleDescriptor<java.lang.Void>
- Parameters:
plugin - The plugin that the module belongs to.element - XML element representing the module.
- Throws:
PluginParseException - Can be thrown if an error occurs while parsing the XML element.
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation in interface WebSectionModuleDescriptor<java.lang.Void>
getModuleClass
public java.lang.Class<java.lang.Void> getModuleClass()
- Description copied from interface:
ModuleDescriptor
- The class of the module this descriptor creates.
- Specified by:
getModuleClass in interface ModuleDescriptor<java.lang.Void>- Overrides:
getModuleClass in class AbstractModuleDescriptor<java.lang.Void>
- Returns:
- The class of the module this descriptor creates.
- See Also:
ModuleDescriptor.getModule()
getModule
public java.lang.Void getModule()
- Description copied from interface:
ModuleDescriptor
- The particular module object created by this plugin.
- Specified by:
getModule in interface ModuleDescriptor<java.lang.Void>- Specified by:
getModule in class AbstractModuleDescriptor<java.lang.Void>
- Returns:
- The module object created by this plugin.
- See Also:
ModuleDescriptor.getModuleClass()
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.