1 |
fef336af
|
h.fradin
|
<?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="http://www.springframework.org/schema/beans
|
6 |
|
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
7 |
|
|
http://www.springframework.org/schema/context
|
8 |
|
|
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
9 |
|
|
|
10 |
|
|
<import resource="classpath:/eu/etaxonomy/cdm/persistence.xml"/>
|
11 |
|
|
|
12 |
|
|
<bean id="dataSource" lazy-init="true" class="eu.etaxonomy.cdm.database.LocalH2" init-method="init" destroy-method="destroy">
|
13 |
|
|
<property name="driverClassName" value="org.h2.Driver"/>
|
14 |
|
|
<property name="username" value="sa"/>
|
15 |
|
|
<property name="password" value=""/>
|
16 |
|
|
<property name="startServer" value="true"/>
|
17 |
|
|
</bean>
|
18 |
|
|
|
19 |
|
|
<bean id="hibernateProperties"
|
20 |
|
|
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
|
21 |
|
|
<property name="properties">
|
22 |
|
|
<props>
|
23 |
|
|
<prop key="hibernate.dialect">org.hibernate.dialect.H2Dialect</prop>
|
24 |
|
|
<prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
|
25 |
|
|
<prop key="hibernate.show_sql">false</prop>
|
26 |
|
|
<prop key="hibernate.format_sql">false</prop>
|
27 |
|
|
<prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</prop>
|
28 |
|
|
<prop key="hibernate.search.default.indexBase">./</prop>
|
29 |
|
|
</props>
|
30 |
|
|
</property>
|
31 |
|
|
</bean>
|
32 |
|
|
|
33 |
|
|
<bean id="taxonSpellingDirectory" class="org.springmodules.lucene.index.support.FSDirectoryFactoryBean">
|
34 |
|
|
<property name="location" value="file:./target/test-classes/eu.etaxonomy.cdm.model.taxon.TaxonBase_spelling"/>
|
35 |
|
|
<property name="create" value="true"/>
|
36 |
|
|
</bean>
|
37 |
|
|
|
38 |
|
|
<bean id="taxonSpellingIndex" class="org.springmodules.lucene.index.support.SimpleIndexFactoryBean">
|
39 |
|
|
<property name="directory" ref="taxonSpellingDirectory"/>
|
40 |
|
|
<property name="create" value="true"/>
|
41 |
|
|
<property name="analyzer">
|
42 |
|
|
<bean class="org.apache.lucene.analysis.SimpleAnalyzer"/>
|
43 |
|
|
</property>
|
44 |
|
|
</bean>
|
45 |
|
|
|
46 |
|
|
<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
|
47 |
|
|
<property name="providers">
|
48 |
|
|
<list>
|
49 |
|
|
<bean class="org.springframework.security.providers.TestingAuthenticationProvider"/>
|
50 |
|
|
</list>
|
51 |
|
|
</property>
|
52 |
|
|
</bean>
|
53 |
|
|
|
54 |
|
|
<bean id="passwordEncoder" class="org.springframework.security.providers.encoding.Md5PasswordEncoder"/>
|
55 |
|
|
|
56 |
|
|
<bean id="saltSource" class="org.springframework.security.providers.dao.salt.ReflectionSaltSource">
|
57 |
|
|
<property name="userPropertyToUse" value="getUsername"/>
|
58 |
|
|
</bean>
|
59 |
|
|
|
60 |
|
|
</beans>
|