com.atlassian.confluence.plugin.descriptor
Class XWorkModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor
com.atlassian.confluence.plugin.descriptor.XWorkModuleDescriptor
- All Implemented Interfaces:
- ModuleDescriptor, Resourced, StateAware, com.opensymphony.xwork.config.ConfigurationProvider
public class XWorkModuleDescriptor
- extends AbstractModuleDescriptor
- implements com.opensymphony.xwork.config.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
Method Summary |
protected void |
addAction(Element actionElement,
com.opensymphony.xwork.config.entities.PackageConfig packageContext)
|
protected void |
addResultTypes(com.opensymphony.xwork.config.entities.PackageConfig packageContext,
Element element)
|
protected List |
buildExternalRefs(Element element,
com.opensymphony.xwork.config.entities.PackageConfig context)
|
protected List |
buildInterceptorList(Element element,
com.opensymphony.xwork.config.entities.PackageConfig context)
|
protected com.opensymphony.xwork.config.entities.PackageConfig |
buildPackageContext(Element packageElement,
com.opensymphony.xwork.config.Configuration configuration)
|
protected Map |
buildResults(Element element,
com.opensymphony.xwork.config.entities.PackageConfig packageContext)
|
void |
destroy()
|
void |
disabled()
|
void |
enabled()
|
Object |
getModule()
|
static HashMap |
getParams(Element paramsElement)
|
void |
init(com.opensymphony.xwork.config.Configuration configuration)
|
void |
init(Plugin plugin,
Element element)
|
boolean |
isEnabled()
|
protected void |
loadDefaultInterceptorRef(com.opensymphony.xwork.config.entities.PackageConfig packageContext,
Element element)
|
protected void |
loadGlobalResults(com.opensymphony.xwork.config.entities.PackageConfig packageContext,
Element packageElement)
|
protected void |
loadInterceptors(com.opensymphony.xwork.config.entities.PackageConfig context,
Element element)
|
protected com.opensymphony.xwork.config.entities.InterceptorStackConfig |
loadInterceptorStack(Element element,
com.opensymphony.xwork.config.entities.PackageConfig context)
|
protected void |
loadInterceptorStacks(Element element,
com.opensymphony.xwork.config.entities.PackageConfig context)
|
boolean |
needsReload()
|
void |
setEventManager(EventManager eventManager)
|
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
assertModuleClassImplements, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString |
XWorkModuleDescriptor
public XWorkModuleDescriptor()
setEventManager
public void setEventManager(EventManager eventManager)
init
public void init(Plugin plugin,
Element element)
throws PluginParseException
- Specified by:
init
in interface ModuleDescriptor
- Overrides:
init
in class AbstractModuleDescriptor
- Throws:
PluginParseException
enabled
public void enabled()
- Specified by:
enabled
in interface StateAware
- Overrides:
enabled
in class AbstractModuleDescriptor
disabled
public void disabled()
- Specified by:
disabled
in interface StateAware
- Overrides:
disabled
in class AbstractModuleDescriptor
isEnabled
public boolean isEnabled()
loadInterceptors
protected void loadInterceptors(com.opensymphony.xwork.config.entities.PackageConfig context,
Element element)
throws com.opensymphony.xwork.config.ConfigurationException
- Throws:
com.opensymphony.xwork.config.ConfigurationException
loadDefaultInterceptorRef
protected void loadDefaultInterceptorRef(com.opensymphony.xwork.config.entities.PackageConfig packageContext,
Element element)
loadGlobalResults
protected void loadGlobalResults(com.opensymphony.xwork.config.entities.PackageConfig packageContext,
Element packageElement)
buildResults
protected Map buildResults(Element element,
com.opensymphony.xwork.config.entities.PackageConfig packageContext)
loadInterceptorStack
protected com.opensymphony.xwork.config.entities.InterceptorStackConfig loadInterceptorStack(Element element,
com.opensymphony.xwork.config.entities.PackageConfig context)
throws com.opensymphony.xwork.config.ConfigurationException
- Throws:
com.opensymphony.xwork.config.ConfigurationException
loadInterceptorStacks
protected void loadInterceptorStacks(Element element,
com.opensymphony.xwork.config.entities.PackageConfig context)
throws com.opensymphony.xwork.config.ConfigurationException
- Throws:
com.opensymphony.xwork.config.ConfigurationException
addAction
protected void addAction(Element actionElement,
com.opensymphony.xwork.config.entities.PackageConfig packageContext)
throws com.opensymphony.xwork.config.ConfigurationException
- Throws:
com.opensymphony.xwork.config.ConfigurationException
buildExternalRefs
protected List buildExternalRefs(Element element,
com.opensymphony.xwork.config.entities.PackageConfig context)
throws com.opensymphony.xwork.config.ConfigurationException
- Throws:
com.opensymphony.xwork.config.ConfigurationException
addResultTypes
protected void addResultTypes(com.opensymphony.xwork.config.entities.PackageConfig packageContext,
Element element)
getModule
public Object getModule()
- Specified by:
getModule
in interface ModuleDescriptor
- Specified by:
getModule
in class AbstractModuleDescriptor
buildPackageContext
protected com.opensymphony.xwork.config.entities.PackageConfig buildPackageContext(Element packageElement,
com.opensymphony.xwork.config.Configuration configuration)
buildInterceptorList
protected List buildInterceptorList(Element element,
com.opensymphony.xwork.config.entities.PackageConfig context)
throws com.opensymphony.xwork.config.ConfigurationException
- Throws:
com.opensymphony.xwork.config.ConfigurationException
getParams
public static HashMap getParams(Element paramsElement)
destroy
public void destroy()
- Specified by:
destroy
in interface com.opensymphony.xwork.config.ConfigurationProvider
init
public void init(com.opensymphony.xwork.config.Configuration configuration)
throws com.opensymphony.xwork.config.ConfigurationException
- Specified by:
init
in interface com.opensymphony.xwork.config.ConfigurationProvider
- Throws:
com.opensymphony.xwork.config.ConfigurationException
needsReload
public boolean needsReload()
- Specified by:
needsReload
in interface com.opensymphony.xwork.config.ConfigurationProvider