1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
|
xmlns:p="http://www.springframework.org/schema/p"
|
4
|
xmlns="http://www.springframework.org/schema/beans"
|
5
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
6
|
|
7
|
<bean id="recentResultsQueue" class="eu.dnetlib.openaire.directindex.api.RecentResultsQueue"
|
8
|
p:db-ref="msroApiMongoDB" p:collection="${openaire.api.directindex.mongo.collection}"
|
9
|
init-method="init"/>
|
10
|
|
11
|
|
12
|
<bean id="apiMongoServer" class="com.mongodb.Mongo">
|
13
|
<constructor-arg index="0" type="com.mongodb.ServerAddress">
|
14
|
<bean class="com.mongodb.ServerAddress">
|
15
|
<constructor-arg index="0"
|
16
|
value="${openaire.api.directindex.mongo.host}"/>
|
17
|
<constructor-arg index="1"
|
18
|
value="${openaire.api.directindex.mongo.port}"/>
|
19
|
</bean>
|
20
|
</constructor-arg>
|
21
|
</bean>
|
22
|
|
23
|
<bean id="apiOafToIndexRecordFactory" class="eu.dnetlib.openaire.directindex.utils.OafToIndexRecordFactory"
|
24
|
p:layoutToRecord="${openaire.api.directindex.layoutToRecord.xslt}"/>
|
25
|
|
26
|
|
27
|
<bean id="msroApiMongoDB" factory-bean="apiMongoServer"
|
28
|
factory-method="getDB">
|
29
|
<constructor-arg index="0" value="${openaire.api.directindex.mongo.db}"/>
|
30
|
</bean>
|
31
|
|
32
|
<bean id="openaireplusApisVelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
|
33
|
<property name="velocityProperties">
|
34
|
<value>
|
35
|
resource.loader=class
|
36
|
class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
|
37
|
runtime.log.logsystem.class=org.apache.velocity.runtime.log.Log4JLogChute
|
38
|
</value>
|
39
|
</property>
|
40
|
</bean>
|
41
|
|
42
|
<bean id="resultSubmitterClientMap" class="eu.dnetlib.openaire.directindex.api.IndexClientMap" />
|
43
|
|
44
|
<bean id="resultSubmitterService" class="eu.dnetlib.openaire.directindex.api.ResultSubmitterService" />
|
45
|
|
46
|
<bean id="indexDSRetriever" class="eu.dnetlib.openaire.directindex.api.IndexDSRetriever" />
|
47
|
|
48
|
<bean id="directIndexCacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager"
|
49
|
p:cacheManager-ref="directIndexCache" />
|
50
|
|
51
|
<bean id="directIndexCache"
|
52
|
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
|
53
|
p:cacheManagerName="directIndexCache"
|
54
|
p:configLocation="classpath:/eu/dnetlib/openaire/directindex/api/ehcache.xml" />
|
55
|
|
56
|
</beans>
|