Class PluginModuleXmlConfigurationProvider
- java.lang.Object
-
- com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
-
- com.atlassian.confluence.impl.struts.PluginModuleXmlConfigurationProvider
-
- All Implemented Interfaces:
com.opensymphony.xwork2.config.ConfigurationProvider
,com.opensymphony.xwork2.config.ContainerProvider
,com.opensymphony.xwork2.config.PackageProvider
public class PluginModuleXmlConfigurationProvider extends com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
Parses an XWork module element from a plugin for loading by the Struts configuration.
-
-
Constructor Summary
Constructors Constructor Description PluginModuleXmlConfigurationProvider(Document document, com.atlassian.plugin.Plugin plugin, Runnable disableModuleRunnable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.opensymphony.xwork2.config.entities.ActionConfig
buildActionConfig(Element actionElement, com.opensymphony.xwork2.util.location.Location location, com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, Map<String,com.opensymphony.xwork2.config.entities.ResultConfig> results)
protected com.opensymphony.xwork2.config.entities.InterceptorConfig
buildInterceptorConfig(Element interceptorElement)
protected com.opensymphony.xwork2.config.entities.ResultConfig
buildResultConfig(String name, com.opensymphony.xwork2.config.entities.ResultTypeConfig config, com.opensymphony.xwork2.util.location.Location location, Map<String,String> params)
protected com.opensymphony.xwork2.config.entities.ResultTypeConfig
buildResultTypeConfig(Element resultTypeElement, com.opensymphony.xwork2.util.location.Location location, String paramName)
protected Class<?>
loadClass(String className)
void
loadPackages()
void
register(com.opensymphony.xwork2.inject.ContainerBuilder containerBuilder, com.opensymphony.xwork2.util.location.LocatableProperties locatableProperties)
-
Methods inherited from class com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
addAction, addAllowedMethodsToSet, addPackage, addResultTypes, allowAndLoadClass, buildAllowedMethods, buildExceptionMappings, buildExceptionMappings, buildInterceptorList, buildPackageContext, buildResultParams, buildResults, destroy, getDtdMappings, guessResultType, init, iterateChildren, iterateChildrenByTagName, iterateElementChildren, iterateElementChildren, loadDefaultActionRef, loadDefaultClassRef, loadDefaultInterceptorRef, loadExtraConfiguration, loadGlobalAllowedMethods, loadGlobalExceptionMappings, loadGlobalResults, loadInterceptors, loadInterceptorStack, loadInterceptorStacks, lookupInterceptorReference, needsReload, registerBean, registerBeanSelection, registerConstant, registerUnknownHandlerStack, setDtdMappings, setObjectFactory, setThrowExceptionOnDuplicateBeans, setValueSubstitutor, verifyAction, verifyAction, verifyInterceptor, verifyResultType
-
-
-
-
Method Detail
-
register
public void register(com.opensymphony.xwork2.inject.ContainerBuilder containerBuilder, com.opensymphony.xwork2.util.location.LocatableProperties locatableProperties) throws com.opensymphony.xwork2.config.ConfigurationException
- Specified by:
register
in interfacecom.opensymphony.xwork2.config.ContainerProvider
- Overrides:
register
in classcom.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
loadPackages
public void loadPackages() throws com.opensymphony.xwork2.config.ConfigurationException
- Specified by:
loadPackages
in interfacecom.opensymphony.xwork2.config.PackageProvider
- Overrides:
loadPackages
in classcom.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
loadClass
protected Class<?> loadClass(String className) throws ClassNotFoundException
- Overrides:
loadClass
in classcom.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
- Throws:
ClassNotFoundException
-
buildActionConfig
protected com.opensymphony.xwork2.config.entities.ActionConfig buildActionConfig(Element actionElement, com.opensymphony.xwork2.util.location.Location location, com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, Map<String,com.opensymphony.xwork2.config.entities.ResultConfig> results)
- Overrides:
buildActionConfig
in classcom.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
-
buildResultTypeConfig
protected com.opensymphony.xwork2.config.entities.ResultTypeConfig buildResultTypeConfig(Element resultTypeElement, com.opensymphony.xwork2.util.location.Location location, String paramName)
- Overrides:
buildResultTypeConfig
in classcom.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
-
buildResultConfig
protected com.opensymphony.xwork2.config.entities.ResultConfig buildResultConfig(String name, com.opensymphony.xwork2.config.entities.ResultTypeConfig config, com.opensymphony.xwork2.util.location.Location location, Map<String,String> params)
- Overrides:
buildResultConfig
in classcom.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
-
buildInterceptorConfig
protected com.opensymphony.xwork2.config.entities.InterceptorConfig buildInterceptorConfig(Element interceptorElement)
- Overrides:
buildInterceptorConfig
in classcom.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
-
-