Project

General

Profile

« Previous | Next » 

Revision f4142aa7

Added by Cherian Mathew almost 9 years ago

cdmlib-ehcache : removed disk based cache manager since the hb config is now cached in memory
CdmApplicationRemoteController, CdmModelCacher, CdmRemoteCacheManager, CdmModelGetMethodCacherTest : running the hibernate config load in separate thread
CdmTransientEntityCacher, EntityCacherDebugResult, CdmStore, SessionsViewPart: refactoring
httpInvokerServiceClients.xml : removed lazy loading of beans

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/cache/CdmTransientEntityCacher.java
15 15
import java.util.Map;
16 16

  
17 17
import net.sf.ehcache.Cache;
18
import net.sf.ehcache.CacheManager;
18 19
import net.sf.ehcache.Element;
19 20
import net.sf.ehcache.config.CacheConfiguration;
20 21
import net.sf.ehcache.config.SizeOfPolicyConfiguration;
......
63 64

  
64 65
        cache = new Cache(getEntityCacheConfiguration(cacheId));
65 66

  
66
        CdmRemoteCacheManager.getInstance().getDefaultCacheManager().addCache(cache);
67
        CacheManager.create().addCache(cache);
67 68

  
68 69
        this.cdmEntitySessionManager = cdmEntitySessionManager;
69 70

  
......
111 112
     * @return
112 113
     */
113 114
    private Cache getCache() {
114
        return  CdmRemoteCacheManager.getInstance().getDefaultCacheManager().getCache(cacheId);
115
        return  CacheManager.create().getCache(cacheId);
115 116
    }
116 117

  
117 118
    public <T extends Object> T load(T obj, boolean update) {

Also available in: Unified diff