1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <beans xmlns=
"http://www.springframework.org/schema/beans"
3 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:
tx=
"http://www.springframework.org/schema/tx"
5 xmlns:
context=
"http://www.springframework.org/schema/context"
6 xsi:
schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
8 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
11 <!-- include default application context and customization -->
12 <import resource=
"classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
13 <bean id=
"persistentTermInitializer" class=
"eu.etaxonomy.cdm.database.PersistentTermInitializer">
14 <property name=
"omit" value=
"false" />
16 <context:component-scan base-package=
"eu/etaxonomy/cdm/ext" />
18 <import resource=
"classpath:/eu/etaxonomy/cdm/remote.xml"/>
20 <context:component-scan base-package=
"eu/etaxonomy/cdm/io">
21 <context:exclude-filter type=
"regex" expression=
"eu\.etaxonomy\.cdm\.io\.pesi.*" />
22 <context:exclude-filter type=
"regex" expression=
"eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" />
23 <context:exclude-filter type=
"regex" expression=
"eu\.etaxonomy\.cdm\.io\.erms.*" />
24 <context:exclude-filter type=
"regex" expression=
"eu\.etaxonomy\.cdm\.io\.eflora.*" />
25 <context:exclude-filter type=
"regex" expression=
"eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
26 </context:component-scan>
28 <bean class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
29 <property name=
"properties">
31 <prop key=
"eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/
</prop>
32 <prop key=
"eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/
</prop>
33 <prop key=
"eu.etaxonomy.cdm.ehcache.diskstore.path">${user.home}/.cdmLibrary/ehcache
</prop>
38 <!-- enable the configuration of transactional behavior based on annotations -->
39 <tx:annotation-driven transaction-manager=
"transactionManager"/>
41 <!-- import additional beans into the root context -->
42 <import resource=
"applicationContext.views.xml"/>
44 <!-- CONFIGURE WEB APPLICATION HERE -->
45 <import resource=
"datasources/configurable.xml" />
47 <context:annotation-config/>
48 <bean class=
"eu.etaxonomy.cdm.remote.config.LoggingConfigurer">
51 <!-- OAI-PMH TODO externalize? -->
52 <bean name=
"taxonOaiPmhController" class=
"eu.etaxonomy.cdm.remote.controller.oaipmh.TaxonOaiPmhController">
53 <property name=
"cachingModel" ref=
"taxonOaiPmhCacheMapping"/>
56 <bean name=
"taxonOaiPmhCacheMapping" class=
"org.springmodules.cache.provider.ehcache.EhCacheCachingModel">
57 <property name=
"cacheName" value=
"eu.etaxonomy.cdm.remote.controller.TaxonOaiPmhController.resumptionToken"/>
59 <bean id=
"cacheManager" class=
"org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
60 <property name=
"configLocation" value=
"classpath:/eu/etaxonomy/cdm/remote/ehcache.xml" />
61 <property name=
"shared" value=
"true"/>
64 <bean id=
"serializableFactory" class=
"org.springmodules.cache.serializable.XStreamSerializableFactory"/>
66 <bean id=
"cacheProviderFacade" class=
"org.springmodules.cache.provider.ehcache.EhCacheFacade">
67 <property name=
"cacheManager" ref=
"cacheManager" />
68 <property name=
"serializableFactory" ref=
"serializableFactory"/>