ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkuliche...@apache.org
Subject [7/8] incubator-ignite git commit: IGNITE-541 - Dynamic caching in SpringCacheManager
Date Sat, 21 Mar 2015 04:06:38 GMT
IGNITE-541 - Dynamic caching in SpringCacheManager


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/1229c7fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/1229c7fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/1229c7fb

Branch: refs/heads/ignite-45
Commit: 1229c7fb9ceecbbc90f3c05cb72c543e211beb50
Parents: 886ba03
Author: Valentin Kulichenko <vkulichenko@gridgain.com>
Authored: Fri Mar 20 19:30:57 2015 -0700
Committer: Valentin Kulichenko <vkulichenko@gridgain.com>
Committed: Fri Mar 20 19:30:57 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/ignite/cache/spring/SpringCacheManager.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/1229c7fb/modules/spring/src/main/java/org/apache/ignite/cache/spring/SpringCacheManager.java
----------------------------------------------------------------------
diff --git a/modules/spring/src/main/java/org/apache/ignite/cache/spring/SpringCacheManager.java
b/modules/spring/src/main/java/org/apache/ignite/cache/spring/SpringCacheManager.java
index 2d6c5ae..5675d1d 100644
--- a/modules/spring/src/main/java/org/apache/ignite/cache/spring/SpringCacheManager.java
+++ b/modules/spring/src/main/java/org/apache/ignite/cache/spring/SpringCacheManager.java
@@ -274,8 +274,8 @@ public class SpringCacheManager implements CacheManager, InitializingBean
{
 
             cacheCfg.setName(name);
 
-            // TODO: IGNITE-541 - Provide near cfg.
-            cache = new SpringCache(ignite.getOrCreateCache(cacheCfg));
+            cache = new SpringCache(nearCacheCfg != null ? ignite.getOrCreateCache(cacheCfg,
nearCacheCfg) :
+                ignite.getOrCreateCache(cacheCfg));
 
             SpringCache old = caches.putIfAbsent(name, cache);
 


Mime
View raw message