private void initCachePool() { try { Class factory = Class.forName(configuration.getCachingBackend().getFactoryClass()); cacheManager = ((CacheManagerFactory)factory.newInstance()).createCacheManager(configuration); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { log.warn("cache manager factory {} not found on classpath (error: {}); falling back to Guava in-memory cache backend!", configuration.getCachingBackend(), e.getMessage()); CacheManagerFactory factory = new GuavaCacheManagerFactory(); cacheManager = factory.createCacheManager(configuration); } }
private void initCachePool() { try { Class factory = Class.forName(configuration.getCachingBackend().getFactoryClass()); cacheManager = ((CacheManagerFactory)factory.newInstance()).createCacheManager(configuration); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { log.warn("cache manager factory {} not found on classpath (error: {}); falling back to Guava in-memory cache backend!", configuration.getCachingBackend(), e.getMessage()); CacheManagerFactory factory = new GuavaCacheManagerFactory(); cacheManager = factory.createCacheManager(configuration); } }
log.debug(" - caching Backend: {}",configuration.getCachingBackend()); String cacheMode = (String)config.get(CACHE_MODE); if(StringUtils.isBlank(cacheMode)){