Browse Source
+ update default key generator strategy to improve compatibility for implicit declaration on one arg method + updated docs git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4066 50f2f4bb-b051-0410-bef5-90022cba6387pull/1/merge
8 changed files with 91 additions and 6 deletions
@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:aop="http://www.springframework.org/schema/aop" |
||||
xmlns:p="http://www.springframework.org/schema/p" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"> |
||||
|
||||
<bean id="annotationSource" class="org.springframework.cache.annotation.AnnotationCacheDefinitionSource"/> |
||||
|
||||
<aop:config> |
||||
<aop:advisor advice-ref="debugInterceptor" pointcut="execution(* *..CacheableService.*(..))" order="1"/> |
||||
</aop:config> |
||||
|
||||
<bean id="cacheAspect" class="org.springframework.cache.aspectj.AnnotationCacheAspect" factory-method="aspectOf"> |
||||
<property name="cacheManager" ref="cacheManager"/> |
||||
<property name="cacheDefinitionSources" ref="annotationSource"/> |
||||
</bean> |
||||
|
||||
<bean id="advisor" class="org.springframework.cache.interceptor.BeanFactoryCacheDefinitionSourceAdvisor"> |
||||
<property name="cacheDefinitionSource" ref="annotationSource"/> |
||||
<property name="adviceBeanName" value="cacheInterceptor"/> |
||||
</bean> |
||||
|
||||
|
||||
<bean id="cacheManager" class="org.springframework.cache.support.MapCacheManager"> |
||||
<property name="caches"> |
||||
<set> |
||||
<bean class="org.springframework.cache.concurrent.ConcurrentCacheFactoryBean" p:name="default"/> |
||||
</set> |
||||
</property> |
||||
</bean> |
||||
|
||||
<bean id="debugInterceptor" class="org.springframework.aop.interceptor.DebugInterceptor"/> |
||||
|
||||
<bean id="service" class="org.springframework.cache.config.DefaultCacheableService"/> |
||||
<bean id="classService" class="org.springframework.cache.config.AnnotatedClassCacheableService"/> |
||||
|
||||
</beans> |
||||
Loading…
Reference in new issue