File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
spring-context-support/src/main/java/org/springframework/cache Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@ public EhCacheCacheManager() {
46
46
}
47
47
48
48
/**
49
- * Create a new EhCacheCacheManager for the given backing EhCache.
49
+ * Create a new EhCacheCacheManager for the given backing EhCache CacheManager .
50
50
* @param cacheManager the backing EhCache {@link net.sf.ehcache.CacheManager}
51
51
*/
52
52
public EhCacheCacheManager (net .sf .ehcache .CacheManager cacheManager ) {
@@ -92,8 +92,8 @@ public Cache getCache(String name) {
92
92
// (in case the cache was added at runtime)
93
93
Ehcache ehcache = this .cacheManager .getEhcache (name );
94
94
if (ehcache != null ) {
95
- cache = new EhCacheCache (ehcache );
96
- addCache ( cache );
95
+ addCache ( new EhCacheCache (ehcache ) );
96
+ cache = super . getCache ( name ); // potentially decorated
97
97
}
98
98
}
99
99
return cache ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -110,8 +110,8 @@ public Cache getCache(String name) {
110
110
// (in case the cache was added at runtime)
111
111
javax .cache .Cache <?,?> jcache = this .cacheManager .getCache (name );
112
112
if (jcache != null ) {
113
- cache = new JCacheCache (jcache , this .allowNullValues );
114
- addCache ( cache );
113
+ addCache ( new JCacheCache (jcache , this .allowNullValues ) );
114
+ cache = super . getCache ( name ); // potentially decorated
115
115
}
116
116
}
117
117
return cache ;
You can’t perform that action at this time.
0 commit comments