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
|
9
|
">
|
10
|
|
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" />
|
15
|
</bean>
|
16
|
<context:component-scan base-package="eu/etaxonomy/cdm/ext" />
|
17
|
<context:component-scan base-package="eu/etaxonomy/cdm/remote/webapp/view" />
|
18
|
|
19
|
|
20
|
<import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>
|
21
|
|
22
|
<context:component-scan base-package="eu/etaxonomy/cdm/io">
|
23
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.pesi.*" />
|
24
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" />
|
25
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.erms.*" />
|
26
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.eflora.*" />
|
27
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
|
28
|
</context:component-scan>
|
29
|
|
30
|
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
31
|
<property name="properties">
|
32
|
<props>
|
33
|
<prop key="eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/</prop>
|
34
|
<prop key="eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/</prop>
|
35
|
</props>
|
36
|
</property>
|
37
|
</bean>
|
38
|
|
39
|
<!-- enable the configuration of transactional behavior based on annotations -->
|
40
|
<tx:annotation-driven transaction-manager="transactionManager"/>
|
41
|
|
42
|
<!-- import additional beans into the root context -->
|
43
|
<import resource="applicationContext.views.xml"/>
|
44
|
|
45
|
<!-- CONFIGURE WEB APPLICATION HERE -->
|
46
|
<import resource="datasources/configurable.xml" />
|
47
|
|
48
|
<context:annotation-config/>
|
49
|
<bean class="eu.etaxonomy.cdm.remote.config.LoggingConfigurer">
|
50
|
</bean>
|
51
|
|
52
|
<!-- OAI-PMH TODO externalize? -->
|
53
|
<bean name="taxonOaiPmhController" class="eu.etaxonomy.cdm.remote.controller.oaipmh.TaxonOaiPmhController">
|
54
|
<property name="cachingModel" ref="taxonOaiPmhCacheMapping"/>
|
55
|
</bean>
|
56
|
|
57
|
<bean name="taxonOaiPmhCacheMapping" class="org.springmodules.cache.provider.ehcache.EhCacheCachingModel">
|
58
|
<property name="cacheName" value="eu.etaxonomy.cdm.remote.controller.TaxonOaiPmhController.resumptionToken"/>
|
59
|
</bean>
|
60
|
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
|
61
|
<property name="configLocation" value="classpath:/eu/etaxonomy/cdm/remote/ehcache.xml" />
|
62
|
<property name="shared" value="true"/>
|
63
|
</bean>
|
64
|
|
65
|
<bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory"/>
|
66
|
|
67
|
<bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
|
68
|
<property name="cacheManager" ref="cacheManager" />
|
69
|
<property name="serializableFactory" ref="serializableFactory"/>
|
70
|
</bean>
|
71
|
|
72
|
</beans>
|