public class CacheConfigurationProviderImpl extends Object implements CacheConfigurationProvider
Constructor and Description |
---|
CacheConfigurationProviderImpl() |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
augmentConfiguration(CacheManager mgr,
Cache2kConfiguration<K,V> cfg)
Called when
Cache2kBuilder.build() was called before the configuration is used
to create the cache. |
Cache2kConfiguration |
getDefaultConfiguration(CacheManager mgr)
A new configuration instance for mutation with default values.
|
String |
getDefaultManagerName(ClassLoader cl)
The name of the default manager may be changed in the configuration file.
|
public String getDefaultManagerName(ClassLoader cl)
getDefaultManagerName
in interface CacheConfigurationProvider
public Cache2kConfiguration getDefaultConfiguration(CacheManager mgr)
CacheConfigurationProvider
getDefaultConfiguration
in interface CacheConfigurationProvider
mgr
- Manager the new cache will live inpublic <K,V> void augmentConfiguration(CacheManager mgr, Cache2kConfiguration<K,V> cfg)
CacheConfigurationProvider
Cache2kBuilder.build()
was called before the configuration is used
to create the cache. If no name was specified in the application, the name in the
configuration is null.augmentConfiguration
in interface CacheConfigurationProvider
mgr
- Manager the new cache will live incfg
- the cache configurationcache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.