Project

General

Profile

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"
5
       xmlns:t="http://dnetlib.eu/springbeans/t"
6
       xmlns:template="http://dnetlib.eu/springbeans/template" xmlns="http://www.springframework.org/schema/beans"
7
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
8

    
9

    
10
                                    http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
11
                            http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
12
                            http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd">
13

    
14
	<!-- beans -->
15
	<bean id="mdStoreService" class="eu.dnetlib.data.mdstore.modular.ModularMDStoreService"
16
		init-method="start" destroy-method="stop" p:notificationHandler-ref="mdstoreNotificationHandler"
17
		p:iterableResultSetFactory-ref="iterableResultSetFactory"
18
		p:feeder-ref="mdstoreFeeder" p:retriever-ref="mdstoreRetriever" />
19

    
20
	<bean id="mdstoreNotificationHandler"
21
		class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerExecutorNotificationHandler"
22
		p:blackboardExecutor-ref="mdstoreBlackboardExecutor" />
23

    
24
	<bean id="mdstoreBlackboardExecutor"
25
		class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerActionExecutor"
26
		p:blackboardHandler-ref="blackboardHandler"
27
		p:actionType="eu.dnetlib.data.mdstore.modular.action.MDStoreActions"
28
		p:incomplete="false">
29
		<property name="actionMap">
30
			<map>
31
				<entry key="CREATE">
32
					<bean class="eu.dnetlib.data.mdstore.modular.action.CreateAction"
33
						p:profileCreator-ref="mdstoreProfileCreator"
34
						p:dao-ref="${services.mdstore.dao}" />
35
				</entry>
36
				<entry key="DELETE">
37
					<bean class="eu.dnetlib.data.mdstore.modular.action.DeleteAction"
38
						p:serviceLocator-ref="uniqueServiceLocator" p:dao-ref="${services.mdstore.dao}" />
39
				</entry>
40
				<entry key="FEED">
41
					<bean class="eu.dnetlib.data.mdstore.modular.action.FeedAction"
42
						p:dao-ref="${services.mdstore.dao}" 
43
						p:feeder-ref="mdstoreFeeder"/>
44
				</entry>
45
				<entry key="RUN_PLUGIN">
46
					<bean class="eu.dnetlib.data.mdstore.modular.action.PluginAction"
47
						p:dao-ref="${services.mdstore.dao}" />
48
				</entry>				
49
			</map>
50
		</property>
51
	</bean>
52

    
53
	<bean id="mdstoreProfileCreator" class="eu.dnetlib.data.mdstore.modular.MDStoreProfileCreator"
54
		p:serviceLocator-ref="uniqueServiceLocator" p:mdstoreDsTemplate-ref="mdstoreDsTemplate"
55
		p:endpoint-ref="mdStoreServiceEndpoint" p:eprBuilder-ref="jaxwsEndpointReferenceBuilder" />
56

    
57
	<bean id="mdstoreDsTemplate"
58
		class="eu.dnetlib.springutils.stringtemplate.StringTemplateFactory"
59
		p:template="classpath:/eu/dnetlib/data/mdstore/modular/mdstoreds-template.xml"
60
		scope="prototype" />
61

    
62
	<bean id="mdstoreFeeder" class="eu.dnetlib.data.mdstore.modular.MDStoreFeeder"
63
		p:dao-ref="${services.mdstore.dao}" p:resultSetClientFactory-ref="mdstoreResultSetClientFactory"
64
		p:syncFeed="${services.mdstore.syncFeed}" p:serviceLocator-ref="uniqueServiceLocator" />
65

    
66
	<bean id="mdstoreResultSetClientFactory" parent="resultSetClientFactory"
67
		p:pageSize="${services.mdstore.rsfactory.pagesize}"
68
		p:timeout="${services.mdstore.rsfactory.timeout}"
69
	    p:connectTimeout="${services.mdstore.rsfactory.connectTimeout}"/>
70

    
71

    
72
	<bean id="mdstoreRetriever" class="eu.dnetlib.data.mdstore.modular.MDStoreRetriever"
73
		p:dao-ref="${services.mdstore.dao}" p:resultSetFactory-ref="${services.mdstore.rsfactory}" />
74

    
75
 	<bean id="dummyMDstorePlugin" class="eu.dnetlib.data.mdstore.modular.action.DummyPlugin" />
76
	
77
	<bean id="mdStorePluginEnumerator" class="eu.dnetlib.data.mdstore.modular.action.MDStorePluginEnumerator" />
78

    
79

    
80
    <bean id="mdstoreUtils" class="eu.dnetlib.data.mdstore.modular.MDStoreUtils"/>
81
	
82

    
83
	<!-- <bean id="mdstoreRecordParser" class="eu.dnetlib.data.mdstore.modular.SimpleRecordParser" 
84
		/> -->
85
<!-- 	<bean id="mdstoreRecordParser"  -->
86
<!-- 		factory-bean="recordParserFactory" factory-method="newInstance"/> -->
87
	
88
	<bean id="recordParserFactory" class="eu.dnetlib.data.mdstore.modular.RecordParserFactory"
89
		p:parserType="${services.mdstore.recordParser}" />
90
		
91
	<bean id="bulkRecordMapperFactory" class="eu.dnetlib.data.mdstore.modular.BulkRecordMapperFactory" />
92

    
93
	<!-- endpoints -->
94
	<jaxws:endpoint id="mdStoreServiceEndpoint" implementor="#mdStoreService"
95
		implementorClass="eu.dnetlib.data.mdstore.MDStoreService" address="/mdStore" />
96

    
97
	<template:instance name="serviceRegistrationManager"
98
		t:serviceRegistrationManagerClass="eu.dnetlib.enabling.tools.registration.ValidatingServiceRegistrationManagerImpl"
99
		t:name="mdStoreServiceRegistrationManager" t:service="mdStoreService"
100
		t:endpoint="mdStoreServiceEndpoint" t:jobScheduler="jobScheduler"
101
		t:serviceRegistrator="blackboardServiceRegistrator" />
102
</beans>
(2-2/4)