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="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
|
|
8
|
|
9
|
<bean id="resultSetRegistry" class="eu.dnetlib.enabling.resultset.registry.ResultSetRegistryImpl"
|
10
|
p:cache-ref="resultSetRegistryCache" ttl="${dnet.resultset.ttl}"/>
|
11
|
|
12
|
<bean id="resultSetFactory" class="eu.dnetlib.enabling.resultset.factory.ResultSetFactory"
|
13
|
p:resultSetRegistry-ref="resultSetRegistry"
|
14
|
p:resultSetClient-ref="resultSetClient"
|
15
|
p:baseUrl="${dnet.resultset.baseurl}" />
|
16
|
|
17
|
<bean id="resultSetClient" class="eu.dnetlib.enabling.resultset.client.ResultSetClient"
|
18
|
p:resultSetRegistry-ref="resultSetRegistry" />
|
19
|
|
20
|
<!-- Cache -->
|
21
|
<bean id="resultSetCacheManager"
|
22
|
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
|
23
|
p:configLocation="classpath:eu/dnetlib/enabling/resultset/ehcache.xml" />
|
24
|
|
25
|
<bean id="resultSetRegistryCache" class="net.sf.ehcache.Cache" factory-bean="resultSetCacheManager" factory-method="getCache">
|
26
|
<constructor-arg value="resultsets" />
|
27
|
</bean>
|
28
|
|
29
|
</beans>
|