private Ehcache cloneDefaultCache(final String cacheName) {
if (defaultCache == null) {
return null;
}
Ehcache cache;
try {
cache = (Ehcache) defaultCache.clone();
} catch (CloneNotSupportedException e) {
throw new CacheException("Failure cloning default cache. Initial cause was " + e.getMessage(), e);
}
if (cache != null) {
cache.setName(cacheName);
}
return cache;
}
Method
cloneDefaultCache(String)
Found usages (2 usages found)
Library (2 usages found)
Unclassified usage (2 usages found)
Maven: net.sf.ehcache:ehcache-core:2.6.11 (2 usages found)
net.sf.ehcache (2 usages found)
CacheManager (2 usages found)
addCache(String) (1 usage found)
1173 Ehcache clonedDefaultCache = cloneDefaultCache(cacheName);
addCacheIfAbsent(String) (1 usage found)
1857 Ehcache clonedDefaultCache = cloneDefaultCache(cacheName);