Class PluginConfigurationProvider

  • All Implemented Interfaces:
    com.opensymphony.xwork2.config.ConfigurationProvider, com.opensymphony.xwork2.config.ContainerProvider, com.opensymphony.xwork2.config.PackageProvider

    public class PluginConfigurationProvider
    extends Object
    implements com.opensymphony.xwork2.config.ConfigurationProvider
    A custom xwork configuration provider that loads the configuration out of the plugins module descriptor.
    • Constructor Detail

      • PluginConfigurationProvider

        public PluginConfigurationProvider​(List<com.opensymphony.xwork2.config.entities.PackageConfig> packages)
        A list of PackageConfig instances.
        Parameters:
        packages -
    • Method Detail

      • setPluginEnabled

        public void setPluginEnabled​(boolean b)
      • isPluginEnabled

        public boolean isPluginEnabled()
      • destroy

        public void destroy()
        Specified by:
        destroy in interface com.opensymphony.xwork2.config.ContainerProvider
      • init

        public void init​(com.opensymphony.xwork2.config.Configuration configuration)
                  throws com.opensymphony.xwork2.config.ConfigurationException
        Specified by:
        init in interface com.opensymphony.xwork2.config.ContainerProvider
        Specified by:
        init in interface com.opensymphony.xwork2.config.PackageProvider
        Throws:
        com.opensymphony.xwork2.config.ConfigurationException
      • needsReload

        public boolean needsReload()
        Specified by:
        needsReload in interface com.opensymphony.xwork2.config.ContainerProvider
        Specified by:
        needsReload in interface com.opensymphony.xwork2.config.PackageProvider
      • loadPackages

        public void loadPackages()
                          throws com.opensymphony.xwork2.config.ConfigurationException
        Specified by:
        loadPackages in interface com.opensymphony.xwork2.config.PackageProvider
        Throws:
        com.opensymphony.xwork2.config.ConfigurationException
      • 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
        Throws:
        com.opensymphony.xwork2.config.ConfigurationException