public class EhCacheCacheProvider extends Object implements CacheProvider
http://www.ehcache.org| Constructor and Description |
|---|
EhCacheCacheProvider(String configPath,
boolean jmxEnabled,
boolean withCacheStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(boolean jmxEnabled,
boolean withCacheStats) |
<K,V> Cache<K,V> |
createCache(String name)
Create a named single instance cache in this cache manager, if the cache
already exists, return it if the name is null, a new anonymous cache is
created
|
protected net.sf.ehcache.config.Configuration |
getConfiguration(String configPath)
Read the cache configuration from the specified resource.
|
void |
shutdown()
perform a shutdown
|
@Inject public EhCacheCacheProvider(String configPath, boolean jmxEnabled, boolean withCacheStats) throws IOException
IOExceptionprotected net.sf.ehcache.config.Configuration getConfiguration(String configPath) throws IOException
configPath - IOExceptionpublic void create(boolean jmxEnabled,
boolean withCacheStats)
public void shutdown()
public <K,V> Cache<K,V> createCache(String name)
CacheProvidercreateCache in interface CacheProviderK - The Key type for the cacheV - The pay-load typename - The non-null name of the cache.Copyright © 2007-2012. All Rights Reserved.