Revision b4d31af3
Added by Cherian Mathew about 8 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/cache/CacheLoader.java | ||
---|---|---|
22 | 22 |
import org.apache.log4j.Logger; |
23 | 23 |
import org.springframework.util.ReflectionUtils; |
24 | 24 |
|
25 |
import eu.etaxonomy.cdm.api.service.pager.Pager; |
|
25 | 26 |
import eu.etaxonomy.cdm.model.ICdmCacher; |
26 | 27 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
27 | 28 |
|
... | ... | |
68 | 69 |
return (T) load((Map<T,T>)obj, recursive, update); |
69 | 70 |
} else if (obj instanceof Collection) { |
70 | 71 |
return (T) load((Collection<T>)obj, recursive, update); |
72 |
} else if(obj instanceof Pager) { |
|
73 |
load(((Pager)obj).getRecords(), recursive, update); |
|
74 |
return obj; |
|
71 | 75 |
} |
72 | 76 |
|
73 | 77 |
return obj; |
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/cache/CdmTransientEntityCacher.java | ||
---|---|---|
201 | 201 |
cachedCdmEntity = getFromCache(id); |
202 | 202 |
if(cachedCdmEntity == null) { |
203 | 203 |
getCache().put(new Element(id, cdmEntity)); |
204 |
cdmEntity.initListener(); |
|
204 | 205 |
logger.info(" - object of type " + cdmEntity.getClass().getName() + " with id " + cdmEntity.getId() + " put in cache"); |
205 | 206 |
return; |
206 | 207 |
} |
Also available in: Unified diff
#5161 Initialize listeners on cdm entities before put in cache