public final class DozerCacheManager extends Object implements CacheManager
Constructor and Description |
---|
DozerCacheManager() |
Modifier and Type | Method and Description |
---|---|
void |
addCache(Cache cache) |
void |
addCache(String name,
int maxElementsInMemory) |
boolean |
cacheExists(String name) |
void |
clearAllEntries()
Clears all available caches.
|
Cache |
getCache(String name)
Get Cache object by name.
|
Collection<String> |
getCacheNames()
Returns a Set of all Cache names
|
Collection<Cache> |
getCaches() |
void |
logCaches() |
public Collection<Cache> getCaches()
getCaches
in interface CacheManager
public Cache getCache(String name)
CacheManager
getCache
in interface CacheManager
name
- unique cache namepublic void addCache(String name, int maxElementsInMemory)
addCache
in interface CacheManager
public void addCache(Cache cache)
public Collection<String> getCacheNames()
CacheManager
getCacheNames
in interface CacheManager
public void clearAllEntries()
CacheManager
clearAllEntries
in interface CacheManager
public boolean cacheExists(String name)
cacheExists
in interface CacheManager
public void logCaches()
Copyright © 2005-2014 dozer. All Rights Reserved.