Class CachedConfigurationProvider

  • All Implemented Interfaces:
    com.opensymphony.xwork.config.ConfigurationProvider

    public class CachedConfigurationProvider
    extends Object
    implements com.opensymphony.xwork.config.ConfigurationProvider
    An XWork configuration provider that caches the configuration generated by the provided configuration provider after the first initialisation. Useful for wrapping configuration providers that have expensive, non-changing initialisation such as the XmlConfigurationProvider
    • Constructor Detail

      • CachedConfigurationProvider

        public CachedConfigurationProvider​(com.opensymphony.xwork.config.ConfigurationProvider configurationProvider)
        Construct a cached configuration provider using the supplied provider as the initial source of configuration.
        Parameters:
        configurationProvider - Configuration provider to cache. Must not be null.
    • Method Detail

      • 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