Package org.geomajas.plugin.caching.configuration

Examples of org.geomajas.plugin.caching.configuration.InfinispanConfiguration


  private Map<CacheCategory, CacheService> createCaches(CacheInfo cacheInfo) {
    Map<CacheCategory, CacheService> ciCaches = new HashMap<CacheCategory, CacheService>();
    for (Map.Entry<CacheCategory, InfinispanConfiguration> entry : cacheInfo.getConfiguration().entrySet()) {
      CacheService cacheService;
      CacheCategory category = entry.getKey();
      InfinispanConfiguration config = entry.getValue();
      if (config.isCacheEnabled()) {
        String configurationName = config.getConfigurationName();
        if (null == configurationName) {
          Configuration infinispan;
          infinispan = manager.getDefaultConfiguration().clone();
          infinispan.applyOverrides(config.getInfinispanConfiguration());
          configurationName = "$" + category.getName() + "$" + cacheInfo.getId();
          manager.defineConfiguration(configurationName, infinispan);
        }
        recorder.record("infinispan", "configuration name " + configurationName);
        cacheService = new InfinispanCacheService(manager.<String, Object>getCache(configurationName));
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.caching.configuration.InfinispanConfiguration

Copyright © 2018 www.massapicom. 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.