remotingApplicationContext : now using the cachers from cdmlib
authorCherian Mathew <c.mathew@bgbm.org>
Tue, 18 Nov 2014 09:28:01 +0000 (09:28 +0000)
committerCherian Mathew <c.mathew@bgbm.org>
Tue, 18 Nov 2014 09:28:01 +0000 (09:28 +0000)
CdmServiceCacher : added unimplemented method

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/cache/CdmServiceCacher.java
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remotingApplicationContext.xml

index 6be6919246bfc5ea792d8b1528afe39b20897e0f..f122d18eb3dc948b16be3a74afea317ebdf08f2a 100644 (file)
@@ -10,11 +10,11 @@ import eu.etaxonomy.cdm.model.common.CdmBase;
 
 /**
  * Class which uses CDM services to cache cdm entities
- * 
- * FIXME: Currently only handles terms entities. It would be 
+ *
+ * FIXME: Currently only handles terms entities. It would be
  *        interesting to have a generic method which finds the
  *        correct service to load / cache the entity.
- * 
+ *
  * @author cmathew
  *
  * @param <T>
@@ -24,10 +24,19 @@ public class CdmServiceCacher<T extends CdmBase> extends CdmCacher<T> {
 
        @Autowired
        ITermService termService;
-       
+
        @Override
        protected T findByUuid(UUID uuid) {
                return (T)termService.findWithoutFlush(uuid);
        }
 
+    /* (non-Javadoc)
+     * @see eu.etaxonomy.cdm.api.cache.CdmCacher#setup()
+     */
+    @Override
+    protected void setup() {
+        // TODO Auto-generated method stub
+
+    }
+
 }
index 66be8d6e19cc46652413a952b5bf558e326af0ed..d1bb5ee32f8e836f684323ae5059ad38fd953b75 100644 (file)
@@ -18,7 +18,7 @@
     \r
        <import resource="classpath:/eu/etaxonomy/cdm/remoting_services_security.xml"/>         \r
        \r
-       <bean id="cdmServiceCacher" class="eu.etaxonomy.cdm.api.cache.CdmServiceCacher"/>\r
+       <bean id="cdmTermCacher" class="eu.etaxonomy.cdm.api.cache.CdmTermCacher"/>\r
        \r
        \r
        <!-- EditGeoService was moved to ext. Therefore it will not be found by the default component scan.