Class AbstractCacheConfigurationLoader


  • public abstract class AbstractCacheConfigurationLoader
    extends Object
    Base class to load cache configuration.
    Version:
    $Id: a0e9cb9e947f06d007199b2875454e0b83f5f7e2 $
    • Constructor Detail

      • AbstractCacheConfigurationLoader

        public AbstractCacheConfigurationLoader​(CacheConfiguration configuration,
                                                String defaultPropsId)
        Parameters:
        configuration - the XWiki cache API configuration.
        defaultPropsId - the default configuration identifier used to load cache configuration file.
      • AbstractCacheConfigurationLoader

        public AbstractCacheConfigurationLoader​(CacheConfiguration configuration,
                                                Environment environment,
                                                String defaultPropsId)
        Parameters:
        configuration - the XWiki cache API configuration.
        environment - the environment, can be null
        defaultPropsId - the default configuration identifier used to load cache configuration file.
    • Method Detail

      • getCacheConfiguration

        public CacheConfiguration getCacheConfiguration()
        Returns:
        the XWiki cache API configuration.
      • createTempDir

        protected String createTempDir()
        Returns:
        the path of the temporary local folder based on configuration identifier
      • getDefaultPropsId

        public String getDefaultPropsId()
        Returns:
        the default configuration identifier used to load cache configuration file.