Examples of GuavaCacheManagerFactory


Examples of org.apache.marmotta.kiwi.caching.GuavaCacheManagerFactory

            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);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.