Upgraded Spring Data GemFire 1.5 to Spring Framework 4.0.5.

This commit is contained in:
John Blum
2014-06-19 15:44:26 -07:00
parent dec5e95433
commit 8cc46ac0fc
2 changed files with 7 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ junitVersion=4.11
log4jVersion=1.2.17
mockitoVersion=1.9.5
slf4jVersion=1.7.6
spring.range="[3.2.0, 4.0.0)"
springVersion=3.2.9.RELEASE
spring.range="[4.0.0, 5.0.0)"
springVersion=4.0.5.RELEASE
springDataCommonsVersion=1.9.0.BUILD-SNAPSHOT
version=1.5.0.BUILD-SNAPSHOT

View File

@@ -67,7 +67,11 @@ public class GemfireCache implements Cache {
return (value == null ? null : new SimpleValueWrapper(value));
}
@SuppressWarnings("unchecked")
public <T> T get(final Object key, final Class<T> type) {
return type.cast(region.get(key));
}
@SuppressWarnings("unchecked")
public void put(Object key, Object value) {
region.put(key, value);
}