1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
|
xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:p="http://www.springframework.org/schema/p"
|
4
|
xmlns:http="http://cxf.apache.org/transports/http/configuration" 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
|
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
|
7
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
|
8
|
|
9
|
<!-- beans -->
|
10
|
<bean id="mdStoreService" class="eu.dnetlib.data.mdstore.modular.ModularMDStoreService"
|
11
|
init-method="start" destroy-method="stop" p:notificationHandler-ref="mdstoreNotificationHandler"
|
12
|
p:feeder-ref="mdstoreFeeder" p:retriever-ref="mdstoreRetriever"/>
|
13
|
|
14
|
<bean id="mdstoreNotificationHandler"
|
15
|
class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerExecutorNotificationHandler"
|
16
|
p:blackboardExecutor-ref="mdstoreBlackboardExecutor">
|
17
|
</bean>
|
18
|
|
19
|
<bean id="mdstoreBlackboardExecutor"
|
20
|
class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerActionExecutor"
|
21
|
p:blackboardHandler-ref="blackboardHandler"
|
22
|
p:actionType="eu.dnetlib.data.mdstore.modular.action.MDStoreActions"
|
23
|
p:incomplete="false">
|
24
|
<property name="actionMap">
|
25
|
<map>
|
26
|
<entry key="CREATE">
|
27
|
<bean class="eu.dnetlib.data.mdstore.modular.action.CreateAction"
|
28
|
p:profileCreator-ref="mdstoreProfileCreator"
|
29
|
p:dao-ref="${services.mdstore.dao}"/>
|
30
|
</entry>
|
31
|
<entry key="DELETE">
|
32
|
<bean class="eu.dnetlib.data.mdstore.modular.action.DeleteAction"
|
33
|
p:dao-ref="${services.mdstore.dao}"/>
|
34
|
</entry>
|
35
|
<entry key="FEED">
|
36
|
<bean class="eu.dnetlib.data.mdstore.modular.action.FeedAction"
|
37
|
p:dao-ref="${services.mdstore.dao}"
|
38
|
p:feeder-ref="mdstoreFeeder"/>
|
39
|
</entry>
|
40
|
<entry key="RUN_PLUGIN">
|
41
|
<bean class="eu.dnetlib.data.mdstore.modular.action.PluginAction"
|
42
|
p:dao-ref="${services.mdstore.dao}"/>
|
43
|
</entry>
|
44
|
</map>
|
45
|
</property>
|
46
|
</bean>
|
47
|
|
48
|
<bean id="mdstoreProfileCreator" class="eu.dnetlib.data.mdstore.modular.MDStoreProfileCreator"
|
49
|
p:serviceLocator-ref="uniqueServiceLocator" p:mdstoreDsTemplate-ref="mdstoreDsTemplate"
|
50
|
p:eprBuilder-ref="jaxwsEndpointReferenceBuilder"
|
51
|
p:hostname="${container.hostname}"
|
52
|
p:context="${container.context}"
|
53
|
p:port="${container.port}"
|
54
|
/>
|
55
|
|
56
|
<bean id="mdstoreDsTemplate"
|
57
|
class="eu.dnetlib.springutils.stringtemplate.StringTemplateFactory"
|
58
|
p:template="classpath:/eu/dnetlib/data/mdstore/modular/mdstoreds-template.xml"
|
59
|
scope="prototype"/>
|
60
|
|
61
|
<bean id="mdstoreFeeder" class="eu.dnetlib.data.mdstore.modular.MDStoreFeeder"
|
62
|
p:dao-ref="${services.mdstore.dao}" p:serviceLocator-ref="uniqueServiceLocator"/>
|
63
|
|
64
|
|
65
|
<bean id="mdstoreRetriever" class="eu.dnetlib.data.mdstore.modular.MDStoreRetriever"
|
66
|
p:dao-ref="${services.mdstore.dao}" p:resultSetFactory-ref="${services.mdstore.rsfactory}"/>
|
67
|
|
68
|
<bean id="dummyMDstorePlugin" class="eu.dnetlib.data.mdstore.modular.action.DummyPlugin"/>
|
69
|
|
70
|
<bean id="mdStorePluginEnumerator" class="eu.dnetlib.data.mdstore.modular.action.MDStorePluginEnumerator"/>
|
71
|
|
72
|
|
73
|
<bean id="recordParserFactory" class="eu.dnetlib.data.mdstore.modular.RecordParserFactory"
|
74
|
p:parserType="${services.mdstore.recordParser}"/>
|
75
|
|
76
|
<bean id="bulkRecordMapperFactory" class="eu.dnetlib.data.mdstore.modular.BulkRecordMapperFactory"/>
|
77
|
|
78
|
<!-- endpoints -->
|
79
|
<jaxws:endpoint id="mdStoreServiceEndpoint" implementor="#mdStoreService"
|
80
|
implementorClass="eu.dnetlib.rmi.data.MDStoreService" address="/mdStore"/>
|
81
|
|
82
|
</beans>
|