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 StrutsModuleDescriptor derived Documents for loading by the Struts configuration.
Since:
8.0.0
  • Field Summary

    Fields inherited from class com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider

    allowlistClasses, configuration, declaredPackages, documents, dtdMappings, objectFactory, providerAllowlist, throwExceptionOnDuplicateBeans, valueSubstitutor
  • Constructor Summary

    Constructors
    Constructor
    Description
    PluginModuleXmlConfigurationProvider(Document document, com.atlassian.plugin.Plugin plugin, Runnable disableModuleRunnable)
     
  • Method Summary

    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
     
    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, setProviderAllowlist, setThrowExceptionOnDuplicateBeans, setValueSubstitutor, verifyAction, verifyAction, verifyInterceptor, verifyResultType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PluginModuleXmlConfigurationProvider

      public PluginModuleXmlConfigurationProvider(Document document, com.atlassian.plugin.Plugin plugin, Runnable disableModuleRunnable)
  • Method Details

    • 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 interface com.opensymphony.xwork2.config.ContainerProvider
      Overrides:
      register in class com.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 interface com.opensymphony.xwork2.config.PackageProvider
      Overrides:
      loadPackages in class com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
      Throws:
      com.opensymphony.xwork2.config.ConfigurationException
    • loadClass

      protected Class<?> loadClass(String className) throws ClassNotFoundException
      Overrides:
      loadClass in class com.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 class com.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 class com.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 class com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider
    • buildInterceptorConfig

      protected com.opensymphony.xwork2.config.entities.InterceptorConfig buildInterceptorConfig(Element interceptorElement)
      Overrides:
      buildInterceptorConfig in class com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider