+
+
+ <!-- OAI-PMH TODO externalize? -->
+ <bean name="taxonOaiPmhController" class="eu.etaxonomy.cdm.remote.controller.oaipmh.TaxonOaiPmhController">
+ <property name="cachingModel" ref="taxonOaiPmhCacheMapping"/>
+ </bean>
+
+ <bean name="taxonOaiPmhCacheMapping" class="org.springmodules.cache.provider.ehcache.EhCacheCachingModel">
+ <property name="cacheName" value="eu.etaxonomy.cdm.remote.controller.TaxonOaiPmhController.resumptionToken"/>
+ </bean>
+ <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
+ <property name="configLocation" value="classpath:/eu/etaxonomy/cdm/remote/ehcache.xml" />
+ <property name="shared" value="true"/>
+ </bean>
+
+ <bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory"/>
+
+ <bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
+ <property name="cacheManager" ref="cacheManager" />
+ <property name="serializableFactory" ref="serializableFactory"/>
+ </bean>
+ <!--
+ -->