com.atlassian.confluence.plugin.descriptor
Class XWorkModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor
com.atlassian.confluence.plugin.descriptor.XWorkModuleDescriptor
- All Implemented Interfaces:
- com.atlassian.plugin.ModuleDescriptor, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware, ConfigurationProvider
public class XWorkModuleDescriptor
- extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor
- implements ConfigurationProvider
An XWork-WebWork plugin, which can provide actions and results to add to Confluence's web UI
layer. Actions will normally want to extend ConfluenceActionSupport
.
- See Also:
ConfluenceActionSupport
,
XWork
plugin documentation
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
moduleClassName, moduleFactory, plugin, resources, singleton |
Method Summary |
protected void |
addAction(org.dom4j.Element actionElement,
PackageConfig packageContext)
|
protected void |
addResultTypes(PackageConfig packageContext,
org.dom4j.Element element)
|
protected List |
buildExternalRefs(org.dom4j.Element element,
PackageConfig context)
|
protected List |
buildInterceptorList(org.dom4j.Element element,
PackageConfig context)
|
protected PackageConfig |
buildPackageContext(org.dom4j.Element packageElement,
Configuration configuration)
|
protected Map |
buildResults(org.dom4j.Element element,
PackageConfig packageContext)
|
void |
destroy()
|
void |
disabled()
|
void |
enabled()
|
Object |
getModule()
|
static HashMap |
getParams(org.dom4j.Element paramsElement)
|
void |
init(Configuration configuration)
|
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
|
boolean |
isEnabled()
|
protected void |
loadDefaultInterceptorRef(PackageConfig packageContext,
org.dom4j.Element element)
|
protected void |
loadGlobalResults(PackageConfig packageContext,
org.dom4j.Element packageElement)
|
protected void |
loadInterceptors(PackageConfig context,
org.dom4j.Element element)
|
protected InterceptorStackConfig |
loadInterceptorStack(org.dom4j.Element element,
PackageConfig context)
|
protected void |
loadInterceptorStacks(org.dom4j.Element element,
PackageConfig context)
|
boolean |
needsReload()
|
void |
setEventManager(EventManager eventManager)
|
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
assertModuleClassImplements, destroy, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString |
XWorkModuleDescriptor
public XWorkModuleDescriptor()
setEventManager
public void setEventManager(EventManager eventManager)
init
public void init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interface com.atlassian.plugin.ModuleDescriptor
- Overrides:
init
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
- Throws:
com.atlassian.plugin.PluginParseException
enabled
public void enabled()
- Specified by:
enabled
in interface com.atlassian.plugin.StateAware
- Overrides:
enabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
disabled
public void disabled()
- Specified by:
disabled
in interface com.atlassian.plugin.StateAware
- Overrides:
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
isEnabled
public boolean isEnabled()
loadInterceptors
protected void loadInterceptors(PackageConfig context,
org.dom4j.Element element)
throws ConfigurationException
- Throws:
ConfigurationException
loadDefaultInterceptorRef
protected void loadDefaultInterceptorRef(PackageConfig packageContext,
org.dom4j.Element element)
loadGlobalResults
protected void loadGlobalResults(PackageConfig packageContext,
org.dom4j.Element packageElement)
buildResults
protected Map buildResults(org.dom4j.Element element,
PackageConfig packageContext)
loadInterceptorStack
protected InterceptorStackConfig loadInterceptorStack(org.dom4j.Element element,
PackageConfig context)
throws ConfigurationException
- Throws:
ConfigurationException
loadInterceptorStacks
protected void loadInterceptorStacks(org.dom4j.Element element,
PackageConfig context)
throws ConfigurationException
- Throws:
ConfigurationException
addAction
protected void addAction(org.dom4j.Element actionElement,
PackageConfig packageContext)
throws ConfigurationException
- Throws:
ConfigurationException
buildExternalRefs
protected List buildExternalRefs(org.dom4j.Element element,
PackageConfig context)
throws ConfigurationException
- Throws:
ConfigurationException
addResultTypes
protected void addResultTypes(PackageConfig packageContext,
org.dom4j.Element element)
getModule
public Object getModule()
- Specified by:
getModule
in interface com.atlassian.plugin.ModuleDescriptor
- Specified by:
getModule
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
buildPackageContext
protected PackageConfig buildPackageContext(org.dom4j.Element packageElement,
Configuration configuration)
buildInterceptorList
protected List buildInterceptorList(org.dom4j.Element element,
PackageConfig context)
throws ConfigurationException
- Throws:
ConfigurationException
getParams
public static HashMap getParams(org.dom4j.Element paramsElement)
destroy
public void destroy()
- Specified by:
destroy
in interface ConfigurationProvider
init
public void init(Configuration configuration)
throws ConfigurationException
- Specified by:
init
in interface ConfigurationProvider
- Throws:
ConfigurationException
needsReload
public boolean needsReload()
- Specified by:
needsReload
in interface ConfigurationProvider