Project

General

Profile

Download (3.81 KB) Statistics
| Branch: | Tag: | Revision:
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
  <!-- 
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
        <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.pesi.*" />
36
        <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" />
37
        <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.erms.*" />
38
        <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.eflora.*" />
39
        <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
40
    </context:component-scan>
41

    
42
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
43
      <property name="properties">
44
        <props>
45
            <prop key="eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/</prop>
46
            <prop key="eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/</prop>
47
        </props>
48
          </property>
49
    </bean>
50

    
51
    <!-- enable the configuration of transactional behavior based on annotations -->
52
    <tx:annotation-driven transaction-manager="transactionManager"/>
53
  	
54
  	<!-- import additional beans into the root context (this is in cdmlib-remote-webapp) -->
55
  	<!-- <import resource="applicationContext.views.xml" />  -->
56
  
57
    <!-- import configuration of the datasource bean -->
58
    <import resource="datasources/configurable.xml" />
59
    
60
    <!-- bootstrap the Web Configuration -->
61
  	<bean class="eu.etaxonomy.cdm.remote.config.MultiWebSecurityConfiguration" />
62
 
63
    <bean class="eu.etaxonomy.cdm.opt.config.LoggingConfigurer" />
64

    
65
    <bean class="eu.etaxonomy.cdm.opt.config.EhCacheDiskStoreConfiguration" />
66
 
67
    <bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory" />
68

    
69
    <bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
70
        <!-- 
71
            the cacheManager is provided by the eu.etaxonomy.cdm.api.config.EhCacheConfiguration
72
            in cdmlib-services
73
        -->
74
        <property name="cacheManager" ref="cacheManager" />
75
        <property name="serializableFactory" ref="serializableFactory"/>
76
    </bean>
77
    
78
    <!--  for cdmTermCacher see CdmVaadinConfiguration.setTermCacher() -->
79
    <bean id="cdmTermCacher" class="eu.etaxonomy.cdm.api.cache.CdmTermCacher" />
80
</beans>
(1-1/3)