Examples of CacheManager


Examples of org.richfaces.cache.CacheManager

     *
     * @see org.richfaces.jsr330.Initializable#init(org.richfaces.jsr330.Binders)
     */
    public void init() {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        cacheManager = new CacheManager();
        Map<?, ?> envMap = facesContext.getExternalContext().getInitParameterMap();
        instance = cacheManager.createCache(facesContext, ResourceHandlerImpl.RESOURCE_CACHE_NAME, envMap);
    }
View Full Code Here

Examples of org.springframework.cache.CacheManager

            "were found when only 1 was expected. Remove all but one of the " +
            "CacheManager bean definitions, or implement CachingConfigurer " +
            "to make explicit which CacheManager should be used for " +
            "annotation-driven cache management.");
      }
      CacheManager cacheManager = cacheManagerBeans.iterator().next();
      this.cacheManager = cacheManager;
      // keyGenerator remains null; will fall back to default within CacheInterceptor
    }
    else {
      throw new IllegalStateException("No bean of type CacheManager could be found. " +
View Full Code Here

Examples of org.wso2.caching.CacheManager

                    + cacheKey);
        }

        // look up cache
        Object prop = cfgCtx.getPropertyNonReplicable(CachingConstants.CACHE_MANAGER);
        CacheManager cacheManager;
        if (prop != null && prop instanceof CacheManager) {
            cacheManager = (CacheManager) prop;
        } else {
            synchronized (cfgCtx) {
                // check again after taking the lock to make sure no one else did it before us
                prop = cfgCtx.getPropertyNonReplicable(CachingConstants.CACHE_MANAGER);
                if (prop != null && prop instanceof CacheManager) {
                    cacheManager = (CacheManager) prop;

                } else {
                    synLog.traceOrDebug("Creating/recreating the cache object");
                    cacheManager = new CacheManager();
                    cfgCtx.setProperty(CachingConstants.CACHE_MANAGER, cacheManager);
                }
            }
        }
View Full Code Here

Examples of org.wso2.caching.CacheManager

                    + cacheKey);
        }

        // look up cache
        Object prop = cfgCtx.getPropertyNonReplicable(CachingConstants.CACHE_MANAGER);
        CacheManager cacheManager;
        if (prop != null && prop instanceof CacheManager) {
            cacheManager = (CacheManager) prop;
        } else {
            synchronized (cfgCtx) {
                // check again after taking the lock to make sure no one else did it before us
                prop = cfgCtx.getPropertyNonReplicable(CachingConstants.CACHE_MANAGER);
                if (prop != null && prop instanceof CacheManager) {
                    cacheManager = (CacheManager) prop;

                } else {
                    synLog.traceOrDebug("Creating/recreating the cache object");
                    cacheManager = new CacheManager();
                    cfgCtx.setProperty(CachingConstants.CACHE_MANAGER, cacheManager);
                }
            }
        }
View Full Code Here

Examples of quickdb.modelSupport.CacheManager

        return false;
    }

    public ArrayList obtainCache(String sql, AdminBase admin, Class clazz){
        if(this.cacheStore.containsKey(clazz.getName() + sql)){
            CacheManager cache = this.cacheStore.get(clazz.getName() + sql);
            switch(cache.getCacheType()){
                case 0:
                    return cache.getData();
                case 1:
                    CacheManager cacheUpdate = new CacheManager();
                    admin.setCollectionHasName(true);
                    this.nameCollection.push(cache.getTableName());
                    admin.obtainWhere(cacheUpdate, "id > 0");
                    admin.setCollectionHasName(false);
                    if(cacheUpdate.getId() == cache.getId()){
                        return cache.getData();
                    }
                    this.cacheStore.remove(clazz.getName() + sql);
                    return admin.obtainAll(clazz, sql);
            }
View Full Code Here

Examples of thredds.filesystem.CacheManager

  String ehLocation = "C:/data/ehcache/";
  CacheManager manager;

  LogCategorizer() {
    CacheManager.makeTestCacheManager(ehLocation);
    manager = new CacheManager("directories");
    System.out.printf(" Ehcache at %s%n", ehLocation);

    if (pathMatcher == null)
      pathMatcher = readRoots();
  }
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.