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:p="http://www.springframework.org/schema/p"
|
4
|
xmlns:util="http://www.springframework.org/schema/util"
|
5
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
6
|
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
|
7
|
|
8
|
<bean id="oaiCacheManager"
|
9
|
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
|
10
|
p:cacheManagerName="oaiCacheManger"
|
11
|
p:configLocation="classpath:/eu/dnetlib/data/information/oai/cache/ehcache.xml" />
|
12
|
|
13
|
<bean id="mdformatsEhCache" class="net.sf.ehcache.Cache"
|
14
|
factory-bean="oaiCacheManager" factory-method="getCache">
|
15
|
<constructor-arg value="metadataFormats" />
|
16
|
</bean>
|
17
|
|
18
|
<bean id="mdFormatsCache" class="eu.dnetlib.miscutils.cache.EhCache"
|
19
|
p:cache-ref="mdformatsEhCache" />
|
20
|
|
21
|
<!-- beans -->
|
22
|
<bean id="oaiProperties" class="eu.dnetlib.data.information.oai.publisher.OAIProperties"
|
23
|
p:repoEmail="${services.oai.publisher.repo.email}" p:repoName="${services.oai.publisher.repo.name}"
|
24
|
p:earliestDatestamp="${services.oai.publisher.repo.earliestdatestamp}"
|
25
|
p:baseUrl="${services.oai.publisher.baseUrl}" p:deletedRecordSupport="${services.oai.publisher.deletedrecords}"
|
26
|
p:dateGranularity="${services.oai.publisher.repo.granularity}" />
|
27
|
|
28
|
<bean id="dnetOAICore"
|
29
|
class="eu.dnetlib.data.information.oai.publisher.core.DNetOAICore"
|
30
|
p:pageSize="${services.oai.publisher.dnet.pagesize}"/>
|
31
|
|
32
|
<!-- Tracing -->
|
33
|
|
34
|
<bean name="oaiControllerInterceptor"
|
35
|
class="eu.dnetlib.data.information.oai.publisher.core.CoreInterceptor">
|
36
|
<property name="enterMessage"
|
37
|
value="ENTER: $[targetClassShortName].$[methodName]($[arguments])" />
|
38
|
<property name="exitMessage"
|
39
|
value="EXIT: $[targetClassShortName].$[methodName]() : $[invocationTime]ms" />
|
40
|
</bean>
|
41
|
|
42
|
<bean
|
43
|
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
|
44
|
<property name="beanNames" value="dnetOAICore" />
|
45
|
<property name="proxyTargetClass" value="true" />
|
46
|
<property name="interceptorNames">
|
47
|
<list>
|
48
|
<value>oaiControllerInterceptor</value>
|
49
|
</list>
|
50
|
</property>
|
51
|
</bean>
|
52
|
|
53
|
</beans>
|