Package io.micronaut.eclipsestore.cache
Class CacheConfigurationFactory<K,V>
java.lang.Object
io.micronaut.eclipsestore.cache.CacheConfigurationFactory<K,V>
- Type Parameters:
K
- Key TypeV
- Value Type
Creates a
CacheConfiguration.Builder
for each EclipseStoreCacheConfiguration
.- Since:
- 1.3.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCacheConfigurationProvider
(EclipseStoreCacheConfiguration<K, V> cacheConfiguration) Creates aCacheConfiguration.Builder
for eachEclipseStoreCacheConfiguration
.
-
Constructor Details
-
CacheConfigurationFactory
public CacheConfigurationFactory(io.micronaut.context.BeanContext beanContext) - Parameters:
beanContext
- Bean Context
-
-
Method Details
-
createCacheConfigurationProvider
@EachBean(EclipseStoreCacheConfiguration.class) @Singleton public org.eclipse.store.cache.types.CacheConfiguration.Builder<K,V> createCacheConfigurationProvider(EclipseStoreCacheConfiguration<K, V> cacheConfiguration) Creates aCacheConfiguration.Builder
for eachEclipseStoreCacheConfiguration
.- Parameters:
cacheConfiguration
- Cache Configuration- Returns:
- Cache Configuration Builder
-