1
|
<?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" xmlns:jaxws="http://cxf.apache.org/jaxws"
|
4
|
xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:wsa="http://cxf.apache.org/ws/addressing"
|
5
|
xmlns:p="http://www.springframework.org/schema/p" xmlns:http="http://cxf.apache.org/transports/http/configuration"
|
6
|
xmlns:t="http://dnetlib.eu/springbeans/t" xmlns:template="http://dnetlib.eu/springbeans/template"
|
7
|
xmlns:util="http://www.springframework.org/schema/util"
|
8
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
9
|
http://cxf.apache.org/ws/addressing http://cxf.apache.org/schemas/ws-addr-conf.xsd
|
10
|
http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
|
11
|
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
|
12
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
|
13
|
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
|
14
|
http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd">
|
15
|
|
16
|
<!-- endpoints -->
|
17
|
<jaxws:endpoint id="oaiStoreServiceEndpoint"
|
18
|
implementor="#oaiStoreService" implementorClass="eu.dnetlib.data.oai.store.OAIStoreService"
|
19
|
address="/oaistore" />
|
20
|
|
21
|
<template:instance name="serviceRegistrationManager"
|
22
|
t:serviceRegistrationManagerClass="eu.dnetlib.enabling.tools.registration.ValidatingServiceRegistrationManagerImpl"
|
23
|
t:name="oaiStoreServiceRegistrationManager" t:service="oaiStoreService"
|
24
|
t:endpoint="oaiStoreServiceEndpoint" t:jobScheduler="jobScheduler"
|
25
|
t:serviceRegistrator="blackboardServiceRegistrator" />
|
26
|
|
27
|
<bean id="oaiStoreService" class="eu.dnetlib.data.oai.store.OAIStoreServiceImpl"
|
28
|
init-method="start" destroy-method="stop" p:notificationHandler-ref="oaiStoreNotificationHandler" />
|
29
|
|
30
|
<bean id="oaiStoreNotificationHandler"
|
31
|
class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerExecutorNotificationHandler"
|
32
|
p:blackboardExecutor-ref="oaiStoreBlackboardExecutor" />
|
33
|
|
34
|
<bean id="oaiStoreBlackboardExecutor"
|
35
|
class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerActionExecutor"
|
36
|
p:blackboardHandler-ref="blackboardHandler"
|
37
|
p:actionType="eu.dnetlib.data.oai.store.actions.OAIStoreActions"
|
38
|
p:incomplete="false">
|
39
|
<property name="actionMap">
|
40
|
<map>
|
41
|
<entry key="SYNC">
|
42
|
<bean class="eu.dnetlib.data.oai.store.actions.SyncAction" />
|
43
|
</entry>
|
44
|
<entry key="COUNT_SETS">
|
45
|
<bean class="eu.dnetlib.data.oai.store.actions.CountSetsAction"/>
|
46
|
</entry>
|
47
|
<entry key="REFRESH_CONFIG">
|
48
|
<bean class="eu.dnetlib.data.oai.store.actions.RefreshConfigAction" />
|
49
|
</entry>
|
50
|
<entry key="ENSURE_INDEXES">
|
51
|
<bean class="eu.dnetlib.data.oai.store.actions.EnsureIndexesAction" />
|
52
|
</entry>
|
53
|
<entry key="CREATE_STORE">
|
54
|
<bean class="eu.dnetlib.data.oai.store.actions.CreateStoreAction" />
|
55
|
</entry>
|
56
|
<entry key="CREATE_OAI_INDEX">
|
57
|
<bean class="eu.dnetlib.data.oai.store.actions.CreateOAIIndexAction" />
|
58
|
</entry>
|
59
|
<entry key="DROP_STORE">
|
60
|
<bean class="eu.dnetlib.data.oai.store.actions.DropStoreAction" />
|
61
|
</entry>
|
62
|
</map>
|
63
|
</property>
|
64
|
</bean>
|
65
|
|
66
|
<bean id="synchronizer" class="eu.dnetlib.data.oai.store.sync.OAIStoreSynchronizer" />
|
67
|
|
68
|
<bean id="oaiHelper" class="eu.dnetlib.data.oai.store.conf.OAIHelper"/>
|
69
|
|
70
|
<bean id="oaiSetsCounter" class="eu.dnetlib.data.oai.store.conf.OAISetsCounter" />
|
71
|
|
72
|
<bean id="mongoCacheHelper" class="eu.dnetlib.data.oai.store.mongo.MongoPublisherCacheHelper"/>
|
73
|
|
74
|
</beans>
|