Project

General

Profile

1
<beans xmlns="http://www.springframework.org/schema/beans"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
3
	xmlns:util="http://www.springframework.org/schema/util" xmlns:cache="http://www.springframework.org/schema/cache"
4
	xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:template="http://dnetlib.eu/springbeans/template"
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
	http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
8
	http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
9

    
10
	<!-- THIS FILE MUST CONTAIN THE CACHEMANAGER DECALRES IN DEPENDENCY MODULES 
11
		THAT MUST BE USED BY THE CONTAINER BECAUSE WE CANNOT HAVE MULTIPLE <cache:annotation-driven> 
12
		IN DIFFERENT MODULES. -->
13
		
14
		<cache:annotation-driven cache-manager="provisionCacheManager" />
15
		
16
		<!-- ADD TO THE ARRAY OF CACHE MANAGERS THE CACHE MANAGER DEFINED IN MODULES" APPLICATION CONTEXTS -->
17
		<bean id="provisionCacheManager" class="org.springframework.cache.support.CompositeCacheManager">
18
    		<property name="cacheManagers">
19
        		<array>
20
            		<ref bean="vocabularyCacheManager" />
21
           	 		<ref bean="theOAICacheManager" />
22
           	 		<ref bean="oaiUtilsCacheManager" />
23
           	 		<ref bean="directIndexCacheManager" />
24
			        <!-- Uncomment after we release dnet-datasource-rest-api
25
			            <ref bean="datasourceCacheManager" />
26
			        -->
27
        		</array>
28
    		</property>
29
    		<property name="fallbackToNoOpCache" value="true" />
30
		</bean>
31
</beans>
(1-1/3)