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
|
<context:annotation-config/>
|
12
|
|
13
|
<bean class="eu.etaxonomy.cdm.vaadin.conf.CdmVaadinConfiguration" />
|
14
|
<context:component-scan base-package="eu/etaxonomy/cdm/vaadin" />
|
15
|
|
16
|
<!-- include default application context and customization -->
|
17
|
<import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
|
18
|
<bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
|
19
|
<property name="omit" value="false" />
|
20
|
</bean>
|
21
|
<context:component-scan base-package="eu/etaxonomy/cdm/ext" />
|
22
|
|
23
|
<!-- <import resource="classpath:/eu/etaxonomy/cdm/remote-security.xml"/> -->
|
24
|
<context:component-scan base-package="eu/etaxonomy/cdm/io">
|
25
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.pesi.*" />
|
26
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" />
|
27
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.erms.*" />
|
28
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.eflora.*" />
|
29
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
|
30
|
</context:component-scan>
|
31
|
|
32
|
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
33
|
<property name="properties">
|
34
|
<props>
|
35
|
<prop key="eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/</prop>
|
36
|
<prop key="eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/</prop>
|
37
|
</props>
|
38
|
</property>
|
39
|
</bean>
|
40
|
|
41
|
<!-- enable the configuration of transactional behavior based on annotations -->
|
42
|
<tx:annotation-driven transaction-manager="transactionManager"/>
|
43
|
|
44
|
|
45
|
<!-- import configuration of the datasource bean -->
|
46
|
<import resource="datasources/configurable.xml" />
|
47
|
|
48
|
<!--
|
49
|
<bean class="eu.etaxonomy.cdm.opt.config.LoggingConfigurer">
|
50
|
</bean>
|
51
|
-->
|
52
|
|
53
|
<bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory"/>
|
54
|
|
55
|
<bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
|
56
|
<property name="cacheManager" ref="cacheManager" />
|
57
|
<property name="serializableFactory" ref="serializableFactory"/>
|
58
|
</bean>
|
59
|
|
60
|
</beans>
|