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-4.3.xsd
|
7
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd
|
8
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.3.xsd
|
9
|
">
|
10
|
|
11
|
<!--
|
12
|
NOTE:
|
13
|
For a detailed overview on the spring MVC and application context configuration and
|
14
|
bootstrapping of this web application see:
|
15
|
https://dev.e-taxonomy.eu/redmine/projects/edit/wiki/cdmlib-remote-webappConfigurationAndBootstrapping
|
16
|
-->
|
17
|
|
18
|
<context:annotation-config />
|
19
|
|
20
|
<!--
|
21
|
find the eu.etaxonomy.cdm.remote.config.CdmVaadinConfiguration
|
22
|
-->
|
23
|
<context:component-scan base-package="eu/etaxonomy/cdm/addon/config" />
|
24
|
|
25
|
<!-- include default application context and customization -->
|
26
|
<import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
|
27
|
|
28
|
<bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
|
29
|
<property name="omit" value="false" />
|
30
|
</bean>
|
31
|
<context:component-scan base-package="eu/etaxonomy/cdm/ext" />
|
32
|
|
33
|
<import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>
|
34
|
<context:component-scan base-package="eu/etaxonomy/cdm/io"/>
|
35
|
|
36
|
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
37
|
<property name="properties">
|
38
|
<props>
|
39
|
<prop key="eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/</prop>
|
40
|
<prop key="eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/</prop>
|
41
|
</props>
|
42
|
</property>
|
43
|
</bean>
|
44
|
|
45
|
<!-- enable the configuration of transactional behavior based on annotations -->
|
46
|
<tx:annotation-driven transaction-manager="transactionManager"/>
|
47
|
|
48
|
<!-- import additional beans into the root context (this is in cdmlib-remote-webapp) -->
|
49
|
<!-- <import resource="applicationContext.views.xml" /> -->
|
50
|
|
51
|
<!-- import configuration of the datasource bean -->
|
52
|
<import resource="datasources/configurable.xml" />
|
53
|
|
54
|
<!-- bootstrap the Web Configuration -->
|
55
|
<bean class="eu.etaxonomy.cdm.remote.config.MultiWebSecurityConfiguration" />
|
56
|
|
57
|
<bean class="eu.etaxonomy.cdm.opt.config.EhCacheDiskStoreConfiguration" />
|
58
|
|
59
|
<bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory" />
|
60
|
|
61
|
<bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
|
62
|
<!--
|
63
|
the cacheManager is provided by the eu.etaxonomy.cdm.api.config.EhCacheConfiguration
|
64
|
in cdmlib-services
|
65
|
-->
|
66
|
<property name="cacheManager" ref="cacheManager" />
|
67
|
<property name="serializableFactory" ref="serializableFactory"/>
|
68
|
</bean>
|
69
|
|
70
|
<!-- for cdmTermCacher see CdmVaadinConfiguration.setTermCacher() -->
|
71
|
<bean id="cdmTermCacher" class="eu.etaxonomy.cdm.api.cache.CdmTermCacher" />
|
72
|
</beans>
|