|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<WebPanelRenderer>
com.atlassian.plugin.web.descriptors.WebPanelRendererModuleDescriptor
public class WebPanelRendererModuleDescriptor
The web panel renderer module is used to add web panel renderers to the plugin system.
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_NAME
Host applications should use this string when registering the WebPanelRendererModuleDescriptor. |
| Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
|---|
moduleClassName, moduleFactory, plugin, resources, singleton |
| Constructor Summary | |
|---|---|
WebPanelRendererModuleDescriptor(ModuleFactory moduleClassFactory)
|
|
| Method Summary | |
|---|---|
void |
enabled()
Enables the descriptor by loading the module class. |
WebPanelRenderer |
getModule()
The particular module object created by this plugin. |
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 |
| Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
|---|
assertModuleClassImplements, destroy, disabled, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, satisfiesMinJavaVersion, setPlugin, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String XML_ELEMENT_NAME
WebPanelRendererModuleDescriptor.
| Constructor Detail |
|---|
public WebPanelRendererModuleDescriptor(ModuleFactory moduleClassFactory)
| Method Detail |
|---|
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
AbstractModuleDescriptor.enabled()
method instead.
init in interface ModuleDescriptor<WebPanelRenderer>init in class AbstractModuleDescriptor<WebPanelRenderer>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)
AbstractModuleDescriptor
provideValidationRules in class AbstractModuleDescriptor<WebPanelRenderer>pattern - The validation patternpublic void enabled()
AbstractModuleDescriptor
enabled in interface StateAwareenabled in class AbstractModuleDescriptor<WebPanelRenderer>public WebPanelRenderer getModule()
ModuleDescriptor
getModule in interface ModuleDescriptor<WebPanelRenderer>getModule in class AbstractModuleDescriptor<WebPanelRenderer>ModuleDescriptor.getModuleClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||