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" 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

    
8
						http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
9
						http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
10

    
11

    
12
	<bean id="indexDsTemplate"
13
	      class="eu.dnetlib.springutils.stringtemplate.StringTemplateFactory"
14
	      p:template="classpath:/eu/dnetlib/index/index-ds-template.st"
15
	      scope="prototype"/>
16

    
17
	<bean id="indexServerDAOMap" class="eu.dnetlib.index.IndexServerDAOMapImpl"
18
	      p:indexEnumerator-ref="indexBackendEnumerator"/>
19

    
20

    
21
	<bean id="modularIndexService" class="eu.dnetlib.index.IndexModularService"
22
	      p:notificationHandler-ref="indexNotificationHandler" init-method="start"
23
	      destroy-method="stop">
24
		<property name="extraProtocols">
25
			<bean
26
					class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"
27
					p:targetObject-ref="indexBackendEnumerator" p:targetMethod="getAllProtocols"/>
28
		</property>
29
		<property name="serviceProperties">
30
			<bean
31
					class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"
32
					p:targetObject-ref="indexBackendEnumerator" p:targetMethod="getAllServiceProperties"/>
33
		</property>
34

    
35
	</bean>
36

    
37
	<bean id="indexNotificationHandler"
38
	      class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerExecutorNotificationHandler"
39
	      p:blackboardExecutor-ref="indexBlackboardExecutor"/>
40

    
41

    
42
	<bean id="indexBlackboardExecutor"
43
	      class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerActionExecutor"
44
	      p:blackboardHandler-ref="blackboardHandler"
45
	      p:actionType="eu.dnetlib.functionality.index.action.IndexAction"
46
	      p:incomplete="false">
47
		<property name="actionMap">
48
			<map>
49
				<entry key="CREATE">
50
					<bean class="eu.dnetlib.index.action.CreateIndexAction"
51
					      p:indexDsTemplate-ref="indexDsTemplate"/>
52
				</entry>
53
				<entry key="FEED">
54
					<bean class="eu.dnetlib.index.action.FeedIndexAction"
55
					      p:jobScheduler-ref="w"
56
					      p:rsKeepaliveJob-ref="resultsetKeepaliveJob" p:repeatDelay="${service.index.feed.repeatDelay}"/>
57
				</entry>
58
				<entry key="DELETE">
59
					<bean class="eu.dnetlib.index.action.DeleteIndexAction"/>
60
				</entry>
61
				<entry key="DELETE_BY_QUERY">
62
					<bean class="eu.dnetlib.index.action.DeleteByQueryAction"/>
63
				</entry>
64
				<entry key="IDENTIFY">
65
					<bean class="eu.dnetlib.index.action.IdentifyAction"/>
66
				</entry>
67
			</map>
68
		</property>
69
	</bean>
70

    
71

    
72
	<bean id="indexBackendEnumerator" class="eu.dnetlib.index.IndexBackendEnumerator"/>
73

    
74

    
75
	<bean id="mdFormatNotificationHandler"
76
	      class="eu.dnetlib.index.MdFormatNotificationHandler"
77
	      p:topicExpression="UPDATE/MDFormatDSResourceType/*/RESOURCE_PROFILE/BODY/STATUS"/>
78

    
79
	<jaxws:endpoint id="modularIndexServiceEndpoint"
80
	                implementor="#modularIndexService" implementorClass="eu.dnetlib.data.provision.index.rmi.IndexService"
81
	                address="/IndexService"/>
82

    
83
</beans>
(1-1/2)