Class 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.
    • Field Summary

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

        allowlistClasses, configuration, declaredPackages, documents, dtdMappings, objectFactory, providerAllowlist, throwExceptionOnDuplicateBeans, valueSubstitutor
    • 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
    • Constructor Detail

      • PluginModuleXmlConfigurationProvider

        public PluginModuleXmlConfigurationProvider​(Document document,
                                                    com.atlassian.plugin.Plugin plugin,
                                                    Runnable disableModuleRunnable)
    • 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 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
      • 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