Project

General

Profile

Download (4.09 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-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
    http://dev.e-taxonomy.eu/trac/wiki/cdmlib-remote-webappConfigurationAndBootstrapping
16
  -->
17
  
18
  <context:annotation-config />
19
  
20
  <!-- 
21
    The package eu.etaxonomy.cdm.addon.config is an extension point where
22
    addon-modules can place their Spring configuration classes. 
23
    This component scan will find them.
24
    
25
    This is currently used by cdm-vaadin 
26
   -->
27
  <context:component-scan base-package="eu/etaxonomy/cdm/addon/config" />
28

    
29
  <!-- include default application context and customization -->
30
  <import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml" />
31
  <bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
32
    <property name="omit" value="false" />
33
  </bean>
34
  <context:component-scan base-package="eu/etaxonomy/cdm/ext" />
35

    
36
  <import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>
37
  <context:component-scan base-package="eu/etaxonomy/cdm/io">
38
    <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.pesi.*" />
39
    <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" />
40
    <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.erms.*" />
41
    <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.eflora.*" />
42
    <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
43
  </context:component-scan>
44

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

    
54
  <!-- enable the configuration of transactional behavior based on annotations -->
55
  <tx:annotation-driven transaction-manager="transactionManager" />
56

    
57
  <!-- import additional beans into the root context -->
58
  <import resource="applicationContext.views.xml" />
59

    
60
  <!-- import configuration of the datasource bean -->
61
  <import resource="datasources/configurable.xml" />
62
  
63
  <!-- bootstrap the Web Configuration -->
64
  <bean class="eu.etaxonomy.cdm.remote.config.MultiWebSecurityConfiguration" />
65
  
66
  <bean class="eu.etaxonomy.cdm.opt.config.LoggingConfigurer" />
67
  
68
  <bean class="eu.etaxonomy.cdm.opt.config.EhCacheDiskStoreConfiguration" />
69

    
70
  <!-- OAI-PMH TODO externalize? -->
71
  <bean name="taxonOaiPmhController"
72
    class="eu.etaxonomy.cdm.remote.controller.oaipmh.TaxonOaiPmhController">
73
    <property name="cachingModel" ref="taxonOaiPmhCacheMapping" />
74
  </bean>
75

    
76
  <bean name="taxonOaiPmhCacheMapping"
77
    class="org.springmodules.cache.provider.ehcache.EhCacheCachingModel">
78
    <property name="cacheName"
79
      value="eu.etaxonomy.cdm.remote.controller.TaxonOaiPmhController.resumptionToken" />
80
  </bean>
81

    
82
  <bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory" />
83

    
84
  <bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
85
    <!-- 
86
        the cacheManager is provided by the eu.etaxonomy.cdm.api.config.EhCacheConfiguration
87
        in cdmlib-services
88
     -->
89
    <property name="cacheManager" ref="cacheManager" />
90
    <property name="serializableFactory" ref="serializableFactory" />
91
  </bean>
92

    
93
</beans>
(2-2/9)