Class CacheConfigProviderImpl
- java.lang.Object
-
- org.cache2k.extra.config.provider.ConfigurationProvider
-
- org.cache2k.extra.config.provider.CacheConfigProviderImpl
-
- All Implemented Interfaces:
org.cache2k.core.spi.CacheConfigProvider
public class CacheConfigProviderImpl extends ConfigurationProvider implements org.cache2k.core.spi.CacheConfigProvider
Hooks into cache2k and provides the additional configuration data.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description CacheConfigProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
voidaugmentConfig(org.cache2k.CacheManager mgr, org.cache2k.config.Cache2kConfig<K,V> cfg)Iterable<String>getConfiguredCacheNames(org.cache2k.CacheManager mgr)org.cache2k.config.Cache2kConfiggetDefaultConfig(org.cache2k.CacheManager mgr)StringgetDefaultManagerName(ClassLoader cl)The name of the default manager may be changed in the configuration file.-
Methods inherited from class org.cache2k.extra.config.provider.ConfigurationProvider
copy
-
-
-
-
Method Detail
-
getDefaultManagerName
public String getDefaultManagerName(ClassLoader cl)
The name of the default manager may be changed in the configuration file. Load the default configuration file and save the loaded context for the respective classloader, so we do not load the context twice when we create the first cache.- Specified by:
getDefaultManagerNamein interfaceorg.cache2k.core.spi.CacheConfigProvider
-
getDefaultConfig
public org.cache2k.config.Cache2kConfig getDefaultConfig(org.cache2k.CacheManager mgr)
- Specified by:
getDefaultConfigin interfaceorg.cache2k.core.spi.CacheConfigProvider
-
augmentConfig
public <K,V> void augmentConfig(org.cache2k.CacheManager mgr, org.cache2k.config.Cache2kConfig<K,V> cfg)- Specified by:
augmentConfigin interfaceorg.cache2k.core.spi.CacheConfigProvider
-
-