Project

General

Profile

« Previous | Next » 

Revision a735bbbf

Added by Andreas Kohlbecker about 7 years ago

  • ID a735bbbfccc284e24f355551d2496cd15e790243
  • Parent a1dac6b2

ref #5285 attempt to avoid using the CdmSpringContextHelper
using DI to get rid of CdmSpringContextHelper, but got stuck due to the complexity and variety of the 'design patterns' that have been used.

View differences:

src/test/resources/webapp/WEB-INF/applicationContext.xml
7 7
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
8 8
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
9 9
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
10
    ">
10
    ">
11
    
12
   <context:annotation-config />
13
   
14
    <!--  
15
        find the eu.etaxonomy.cdm.remote.config.CdmVaadinConfiguration
16
    -->
17
   <context:component-scan base-package="eu/etaxonomy/cdm/addon/config" />
11 18

  
12 19
    <context:property-override location="classpath:override.properties"/>
13 20
    
......
26 33
    <tx:annotation-driven transaction-manager="transactionManager"/>
27 34

  
28 35
    <bean id="dataSource" class="org.unitils.database.UnitilsDataSourceFactoryBean"/>
36
    
37
    <bean id="cdmRepository"  class="eu.etaxonomy.cdm.api.application.CdmRepository" />
29 38

  
30 39
    <bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
31 40
        <property name="omit" value="false"/>

Also available in: Unified diff