Debian Codegraph @

src/test/resources/spring/ehcache-beans.xml

raw
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"
4 xmlns:aop="http://www.springframework.org/schema/aop"
5 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
6 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
7
8 <bean id="cacheManager" class="net.sf.ehcache.CacheManager">
9 <constructor-arg index="0" type="java.net.URL"
10 value="classpath:/ehcache.xml"/>
11 </bean>
12
13 <bean id="userCache"
14 class="org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache">
15 <property name="cache">
16 <bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
17 <property name="cacheManager">
18 <bean class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
19 </property>
20 <property name="cacheName" value="userCache"/>
21 </bean>
22 </property>
23 </bean>
24
25 </beans>