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
.cache
.CdmCacher
;
9 import eu
.etaxonomy
.cdm
.api
.service
.ITermService
;
10 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
13 * Class which uses CDM services to cache cdm entities
15 * FIXME: Currently only handles terms entities. It would be
16 * interesting to have a generic method which finds the
17 * correct service to load / cache the entity.
24 public class CdmServiceCacher
<T
extends CdmBase
> extends CdmCacher
<T
> {
27 ITermService termService
;
30 protected T
findByUuid(UUID uuid
) {
31 T term
= (T
)termService
.findWithoutFlush(uuid
);