com.atlassian.confluence.plugin.descriptor
Class XWorkModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor
      extended by com.atlassian.confluence.plugin.descriptor.ConfluenceVelocityModuleDescriptor
          extended by com.atlassian.confluence.plugin.descriptor.XWorkModuleDescriptor
All Implemented Interfaces:
UserLocaleAware, com.atlassian.plugin.ModuleDescriptor, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware, com.opensymphony.xwork.config.ConfigurationProvider

public class XWorkModuleDescriptor
extends ConfluenceVelocityModuleDescriptor
implements com.opensymphony.xwork.config.ConfigurationProvider


Field Summary
 
Fields inherited from class com.atlassian.confluence.plugin.descriptor.ConfluenceVelocityModuleDescriptor
i18NBeanFactory, localeManager, RESOURCE_TYPE_I18N
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
plugin, resources, singleton
 
Constructor Summary
XWorkModuleDescriptor()
           
 
Method Summary
protected  void addAction(org.dom4j.Element actionElement, com.opensymphony.xwork.config.entities.PackageConfig packageContext)
           
protected  void addResultTypes(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element element)
           
protected  java.util.List buildExternalRefs(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context)
           
protected  java.util.List buildInterceptorList(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context)
           
protected  com.opensymphony.xwork.config.entities.PackageConfig buildPackageContext(org.dom4j.Element packageElement, com.opensymphony.xwork.config.Configuration configuration)
           
protected  java.util.Map buildResults(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig packageContext)
           
 void destroy()
           
 void disabled()
           
 void enabled()
           
 java.lang.Object getModule()
           
static java.util.HashMap getParams(org.dom4j.Element paramsElement)
           
 void init(com.opensymphony.xwork.config.Configuration configuration)
           
 void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
           
 boolean isEnabled()
           
protected  void loadDefaultInterceptorRef(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element element)
           
protected  void loadGlobalResults(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element packageElement)
           
protected  void loadInterceptors(com.opensymphony.xwork.config.entities.PackageConfig context, org.dom4j.Element element)
           
protected  com.opensymphony.xwork.config.entities.InterceptorStackConfig loadInterceptorStack(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context)
           
protected  void loadInterceptorStacks(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context)
           
 boolean needsReload()
           
 void setEventManager(com.atlassian.event.EventManager eventManager)
           
 
Methods inherited from class com.atlassian.confluence.plugin.descriptor.ConfluenceVelocityModuleDescriptor
getHtml, getHtml, setI18NBeanFactory, setLocaleManager
 
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, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XWorkModuleDescriptor

public XWorkModuleDescriptor()
Method Detail

setEventManager

public void setEventManager(com.atlassian.event.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(com.opensymphony.xwork.config.entities.PackageConfig context,
                                org.dom4j.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,
                                         org.dom4j.Element element)

loadGlobalResults

protected void loadGlobalResults(com.opensymphony.xwork.config.entities.PackageConfig packageContext,
                                 org.dom4j.Element packageElement)

buildResults

protected java.util.Map buildResults(org.dom4j.Element element,
                                     com.opensymphony.xwork.config.entities.PackageConfig packageContext)

loadInterceptorStack

protected com.opensymphony.xwork.config.entities.InterceptorStackConfig loadInterceptorStack(org.dom4j.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(org.dom4j.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(org.dom4j.Element actionElement,
                         com.opensymphony.xwork.config.entities.PackageConfig packageContext)
                  throws com.opensymphony.xwork.config.ConfigurationException
Throws:
com.opensymphony.xwork.config.ConfigurationException

buildExternalRefs

protected java.util.List buildExternalRefs(org.dom4j.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,
                              org.dom4j.Element element)

getModule

public java.lang.Object getModule()
Specified by:
getModule in interface com.atlassian.plugin.ModuleDescriptor
Specified by:
getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

buildPackageContext

protected com.opensymphony.xwork.config.entities.PackageConfig buildPackageContext(org.dom4j.Element packageElement,
                                                                                   com.opensymphony.xwork.config.Configuration configuration)

buildInterceptorList

protected java.util.List buildInterceptorList(org.dom4j.Element element,
                                              com.opensymphony.xwork.config.entities.PackageConfig context)
                                       throws com.opensymphony.xwork.config.ConfigurationException
Throws:
com.opensymphony.xwork.config.ConfigurationException

getParams

public static java.util.HashMap getParams(org.dom4j.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


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.