<?xml version="1.0" encoding="UTF-8"?>
<!--

    The contents of this file are subject to the license and copyright
    detailed in the LICENSE and NOTICE files at the root of the source
    tree and available online at

    http://www.dspace.org/license/

-->
<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-2.5.xsd">

    <!-- Place all test service bean definitions below here -->

    <!-- sample cache bean -->
    <bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
        <property name="cacheManager" ref="org.dspace.caching.ehcache.CacheManager" />
        <property name="cacheName" value="org.dspace.caching.ehcache.SampleCache" />
        <property name="maxElementsInMemory" value="1000" />
        <property name="diskPersistent" value="false" />
        <property name="eternal" value="false" />
        <property name="timeToLive" value="10" />
        <property name="timeToIdle" value="30" />
    </bean>

    <!-- Test bean for property substitution from configuration service
         (used by DSpaceConfigurationFactoryBeanTest)
         The value of "testDynamicBean.property" should be auto-substituted from
         config/local.properties -->
    <bean id="dynamicPropertyBean" class="org.dspace.servicemanager.config.TestDynamicPropertyBean">
        <property name="property" value="${testDynamicBean.property}"/>
    </bean>

</beans>