1 |
2638be38
|
Andreas Müller
|
<?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:context="http://www.springframework.org/schema/context"
|
5 |
|
|
xsi:schemaLocation="
|
6 |
19d5d18b
|
Andreas Müller
|
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 |
2638be38
|
Andreas Müller
|
">
|
9 |
|
|
|
10 |
|
|
<!--
|
11 |
|
|
======================================================================
|
12 |
|
|
default service configuration (not including persistence.xml configuration)
|
13 |
|
|
======================================================================
|
14 |
|
|
-->
|
15 |
|
|
|
16 |
|
|
<context:component-scan base-package="eu/etaxonomy/cdm/persistence">
|
17 |
|
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.persistence\.dao\.hibernate\.taxon\.TaxonAlternativeSpellingSuggestionParser"/>
|
18 |
|
|
</context:component-scan>
|
19 |
|
|
|
20 |
|
|
<context:component-scan base-package="eu/etaxonomy/cdm/search" />
|
21 |
|
|
|
22 |
|
|
<context:component-scan base-package="eu/etaxonomy/cdm/database">
|
23 |
|
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.database\.PersistentTermInitializer"/>
|
24 |
|
|
</context:component-scan>
|
25 |
|
|
|
26 |
|
|
<!-- also find the implementation of ITaxonNodeComparator (otherwise it is not found by a component scan) -->
|
27 |
|
|
<bean name="taxonNodeByNameComparator" class="eu.etaxonomy.cdm.model.taxon.TaxonNodeByNameComparator"/>
|
28 |
36476e4c
|
Andreas Kohlbecker
|
<!-- find the implementation of UserHelper which is not covered by a component scan -->
|
29 |
|
|
<bean name="cdmUserHelper" class="eu.etaxonomy.cdm.api.utility.CdmUserHelper"/>
|
30 |
2638be38
|
Andreas Müller
|
|
31 |
|
|
<!-- equips a new and empty database with the initial set of meta data and admin user -->
|
32 |
|
|
<bean id="firstDataInserter" class="eu.etaxonomy.cdm.api.application.FirstDataInserter" />
|
33 |
8c34728e
|
Andreas Müller
|
|
34 |
cb3d5203
|
Andreas Kohlbecker
|
<bean id="cdmRepository" class="eu.etaxonomy.cdm.api.application.CdmRepository" />
|
35 |
|
|
|
36 |
8c34728e
|
Andreas Müller
|
<context:component-scan base-package="eu/etaxonomy/cdm/api/cache"/>
|
37 |
|
|
|
38 |
|
|
<bean id="tableGeneratorGlobalOverride"
|
39 |
|
|
class="eu.etaxonomy.cdm.persistence.hibernate.TableGeneratorGlobalOverride">
|
40 |
|
|
<property name="properties">
|
41 |
|
|
<props>
|
42 |
|
|
<!--
|
43 |
|
|
globally overriding id generation settings see: eu.etaxonomy.cdm.persistence.hibernate.TableGenerator
|
44 |
|
|
-->
|
45 |
|
|
<prop key="optimizer">none</prop>
|
46 |
|
|
<prop key="initial_value">5000</prop><!-- must be higher than any term id in TermsDataSet.xml -->
|
47 |
|
|
</props>
|
48 |
|
|
</property>
|
49 |
|
|
</bean>
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
<bean id="validatorFactory" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">
|
53 |
|
|
<property name="mappingLocations">
|
54 |
|
|
<set>
|
55 |
9dc896c9
|
Andreas Müller
|
<value>classpath:/eu/etaxonomy/cdm/validation/name/TaxonName-Constraints.xml</value>
|
56 |
8c34728e
|
Andreas Müller
|
</set>
|
57 |
|
|
</property>
|
58 |
|
|
</bean>
|
59 |
61483b42
|
Andreas Kohlbecker
|
|
60 |
2638be38
|
Andreas Müller
|
</beans>
|