Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdm-vaadin / src / test / resources / eu / etaxonomy / cdm / applicationContext-service-integration.xml @ 716825dd

History | View | Annotate | Download (3.21 KB)

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
    http://dev.e-taxonomy.eu/trac/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="dataSource" class="org.unitils.database.UnitilsDataSourceFactoryBean"/>
29
   <bean id="dataSourceConfigurer-mock" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
30
        <property name="order" value="-999" />
31
        <property name="ignoreUnresolvablePlaceholders" value="true" />
32
        <property name="properties">
33
          <props>
34
              <prop key="cdm.dataSource.id">cdm</prop>
35
          </props>
36
        </property>
37
    </bean>
38
   
39
   <bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
40
       <property name="omit" value="true" />
41
   </bean>
42
   <context:component-scan base-package="eu/etaxonomy/cdm/ext" />
43

    
44
  <!--   <import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/> -->
45
  <!--   <context:component-scan base-package="eu/etaxonomy/cdm/io"/> -->
46

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

    
56
    <!-- enable the configuration of transactional behavior based on annotations -->
57
    <tx:annotation-driven transaction-manager="transactionManager"/>
58
    
59
    <import resource="classpath:/eu/etaxonomy/cdm/applicationContext-test.common.xml" />
60
    
61
    <bean id="termInitializer" class="eu.etaxonomy.cdm.database.TestingTermInitializer">
62
        <property name="termsDataSet" value="classpath:/eu/etaxonomy/cdm/database/TermsDataSet-ui-registration-with_auditing_info.xml"/> 
63
        <property name="termsDtd" value="classpath:/eu/etaxonomy/cdm/database/schema/dataset.dtd"/>
64
    </bean>
65
    
66
    <!-- find the implementation of UserHelper which is not covered by a component scan  -->
67
    <bean name="cdmUserHelper" class="eu.etaxonomy.cdm.api.utility.CdmUserHelper"/>
68
    
69
</beans>
Add picture from clipboard (Maximum size: 40 MB)