1 package eu
.etaxonomy
.cdm
.api
.cache
;
5 import org
.springframework
.beans
.factory
.annotation
.Autowired
;
6 import org
.springframework
.stereotype
.Component
;
8 import eu
.etaxonomy
.cdm
.api
.service
.ITermService
;
9 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
12 * Class which uses CDM services to cache cdm entities
14 * FIXME: Currently only handles terms entities. It would be
15 * interesting to have a generic method which finds the
16 * correct service to load / cache the entity.
23 public class CdmServiceCacher
<T
extends CdmBase
> extends CdmCacher
<T
> {
26 ITermService termService
;
29 protected T
findByUuid(UUID uuid
) {
30 return (T
)termService
.findWithoutFlush(uuid
);
34 * @see eu.etaxonomy.cdm.api.cache.CdmCacher#setup()
37 protected void setup() {
38 // TODO Auto-generated method stub