K - the key typeV - the value typepublic abstract class Eh107Configuration<K,V>
extends java.lang.Object
implements javax.cache.configuration.Configuration<K,V>
Configuration implementation that enables building a JSR-107 compatible configuration from
a native Ehcache CacheConfiguration.| Constructor and Description |
|---|
Eh107Configuration() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> javax.cache.configuration.Configuration<K,V> |
fromEhcacheCacheConfiguration(Builder<? extends CacheConfiguration<K,V>> ehcacheConfigBuilder)
Creates a new JSR-107
Configuration from the provided CacheConfiguration obtained through a
Builder. |
static <K,V> javax.cache.configuration.Configuration<K,V> |
fromEhcacheCacheConfiguration(CacheConfiguration<K,V> ehcacheConfig)
Creates a new JSR-107
Configuration from the provided CacheConfiguration. |
abstract <T> T |
unwrap(java.lang.Class<T> clazz)
Enables to unwrap the underlying configuration.
|
public static <K,V> javax.cache.configuration.Configuration<K,V> fromEhcacheCacheConfiguration(CacheConfiguration<K,V> ehcacheConfig)
Configuration from the provided CacheConfiguration.K - the key typeV - the value typeehcacheConfig - the native Ehcache configurationpublic static <K,V> javax.cache.configuration.Configuration<K,V> fromEhcacheCacheConfiguration(Builder<? extends CacheConfiguration<K,V>> ehcacheConfigBuilder)
Configuration from the provided CacheConfiguration obtained through a
Builder.K - the key typeV - the value typeehcacheConfigBuilder - the native Ehcache configuration through a builderpublic abstract <T> T unwrap(java.lang.Class<T> clazz)
T - the unwrap target typeclazz - the unwrap target classjava.lang.IllegalArgumentException - if the type cannot be unwrapped in the target type