+ upgrade to Spring 3.1 RC1

This commit is contained in:
Costin Leau
2011-10-17 17:54:05 +03:00
parent cb6e777bc3
commit 18cd56dd7a
6 changed files with 15 additions and 14 deletions

View File

@@ -17,7 +17,7 @@
package org.springframework.data.gemfire.support;
import org.springframework.cache.Cache;
import org.springframework.cache.interceptor.DefaultValueWrapper;
import org.springframework.cache.support.ValueWrapperImpl;
import com.gemstone.gemfire.cache.GemFireCache;
import com.gemstone.gemfire.cache.Region;
@@ -62,7 +62,7 @@ public class GemfireCache implements Cache {
public ValueWrapper get(Object key) {
Object value = region.get(key);
return (value == null ? null : new DefaultValueWrapper(value));
return (value == null ? null : new ValueWrapperImpl(value));
}
public void put(Object key, Object value) {

View File

@@ -63,7 +63,7 @@ public class GemfireCacheManager extends AbstractCacheManager {
Region<?, ?> reg = gemfireCache.getRegion(name);
if (reg != null) {
cache = new GemfireCache(reg);
getCacheMap().put(name, cache);
addCache(cache);
}
}