Package org.xwiki.cache.util
Class AbstractCacheConfigurationLoader
- java.lang.Object
-
- org.xwiki.cache.util.AbstractCacheConfigurationLoader
-
public abstract class AbstractCacheConfigurationLoader extends Object
Base class to load cache configuration.- Version:
- $Id: a0e9cb9e947f06d007199b2875454e0b83f5f7e2 $
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheConfigurationLoader(CacheConfiguration configuration, String defaultPropsId)
AbstractCacheConfigurationLoader(CacheConfiguration configuration, Environment environment, String defaultPropsId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createTempDir()
CacheConfiguration
getCacheConfiguration()
String
getDefaultPropsId()
-
-
-
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 nulldefaultPropsId
- 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.
-
-