1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
|
3
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
4
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
5
|
xmlns:context="http://www.springframework.org/schema/context"
|
6
|
xmlns:cxf="http://cxf.apache.org/core"
|
7
|
xmlns:jaxws="http://cxf.apache.org/jaxws"
|
8
|
xmlns:p="http://http://www.springframework.org/schema/p"
|
9
|
xmlns:template="http://dnetlib.eu/springbeans/template"
|
10
|
xmlns:t="http://dnetlib.eu/springbeans/t"
|
11
|
|
12
|
xsi:schemaLocation="
|
13
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
14
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
|
15
|
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
|
16
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
|
17
|
http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd"
|
18
|
default-autowire="byName">
|
19
|
|
20
|
<!-- custom repository vocabulary loader -->
|
21
|
<bean id="repositoryVocabularyLoader" depends-on="resultSetFactory"
|
22
|
class="gr.uoa.di.driver.enabling.vocabulary.RepositoryVocabularyLoader">
|
23
|
<property name="datasourceManagerService" ref="datasourceManagerServiceLocator" />
|
24
|
</bean>
|
25
|
|
26
|
<!-- Load configuration for service -->
|
27
|
<bean id="configurationFactory" autowire="no" init-method="init"
|
28
|
class="eu.dnetlib.data.search.transform.config.ConfigurationFactory">
|
29
|
<property name="configurationName" value="${services.search.configurationPath}" />
|
30
|
<property name="vocabulariesPath" value="${services.search.vocabulariesPath}"/>
|
31
|
</bean>
|
32
|
|
33
|
<bean id="configuration" factory-bean="configurationFactory" factory-method="createConfiguration">
|
34
|
<constructor-arg value="config"/>
|
35
|
</bean>
|
36
|
|
37
|
<bean id="indexVocabularyLoader" class="eu.dnetlib.data.search.utils.vocabulary.IndexVocabularyLoader">
|
38
|
<property name="searchServiceLocator" ref="searchServiceLocator"/>
|
39
|
</bean>
|
40
|
|
41
|
<bean id="isVocabularyLoader" class="eu.dnetlib.data.search.utils.vocabulary.ISVocabularyLoader">
|
42
|
<property name="lookup" ref="vocabularyLookUp"></property>
|
43
|
</bean>
|
44
|
|
45
|
<bean id="localVocabularyLoader" class="eu.dnetlib.data.search.utils.vocabulary.LocalVocabularyLoader"/>
|
46
|
|
47
|
<bean id="vocabularyManager" class="eu.dnetlib.data.search.utils.vocabulary.VocabularyManagerImpl"
|
48
|
autowire="no" init-method="init">
|
49
|
<property name="indexVocabularyLoader" ref="indexVocabularyLoader"/>
|
50
|
<property name="isVocabularyLoader" ref="isVocabularyLoader"/>
|
51
|
<property name="localVocabularyLoader" ref="localVocabularyLoader"/>
|
52
|
<property name="config" ref="configuration"/>
|
53
|
</bean>
|
54
|
|
55
|
<bean id="vocabularyManagerWrapper" class="eu.dnetlib.data.search.utils.vocabulary.VocabularyManagerWrapper" >
|
56
|
<property name="vocabularyManager" ref="vocabularyManager"/>
|
57
|
</bean>
|
58
|
|
59
|
<bean id="transformerFactory"
|
60
|
class="eu.dnetlib.data.search.transform.config.SearchRegistry">
|
61
|
<property name="config" ref="configuration"/>
|
62
|
<property name="vocabularyManager" ref="vocabularyManager"/>
|
63
|
</bean>
|
64
|
|
65
|
</beans>
|