Revision 4b2b6fc7
Added by Andreas Müller almost 4 years ago
cdmlib-cache/src/main/java/eu/etaxonomy/cdm/cache/CdmTransientEntityCacher.java | ||
---|---|---|
20 | 20 |
|
21 | 21 |
import org.apache.log4j.Logger; |
22 | 22 |
|
23 |
import eu.etaxonomy.cdm.api.cache.CdmCacher; |
|
23 |
import eu.etaxonomy.cdm.api.cache.CdmCacherBase;
|
|
24 | 24 |
import eu.etaxonomy.cdm.model.ICdmCacher; |
25 | 25 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
26 | 26 |
import eu.etaxonomy.cdm.persistence.dto.MergeResult; |
... | ... | |
60 | 60 |
private final Cache cache; |
61 | 61 |
|
62 | 62 |
//permanent cache which is usually used to cache terms permanently |
63 |
private static CdmCacher permanentCache; |
|
63 |
private static CdmCacherBase permanentCache;
|
|
64 | 64 |
|
65 | 65 |
private final CacheLoader cacheLoader; |
66 | 66 |
|
... | ... | |
106 | 106 |
return new CdmEntityCacheKey<T>(entityClass, cdmBase.getId()); |
107 | 107 |
} |
108 | 108 |
|
109 |
public static void setPermanentCacher(CdmCacher permanentCacher) { |
|
109 |
public static void setPermanentCacher(CdmCacherBase permanentCacher) {
|
|
110 | 110 |
permanentCache = permanentCacher; |
111 | 111 |
} |
112 | 112 |
|
Also available in: Unified diff
rename CdmCacher to CdmCacherBase