Upgraded Spring Data GemFire 1.5 to Spring Framework 4.0.5.
This commit is contained in:
@@ -8,7 +8,7 @@ junitVersion=4.11
|
|||||||
log4jVersion=1.2.17
|
log4jVersion=1.2.17
|
||||||
mockitoVersion=1.9.5
|
mockitoVersion=1.9.5
|
||||||
slf4jVersion=1.7.6
|
slf4jVersion=1.7.6
|
||||||
spring.range="[3.2.0, 4.0.0)"
|
spring.range="[4.0.0, 5.0.0)"
|
||||||
springVersion=3.2.9.RELEASE
|
springVersion=4.0.5.RELEASE
|
||||||
springDataCommonsVersion=1.9.0.BUILD-SNAPSHOT
|
springDataCommonsVersion=1.9.0.BUILD-SNAPSHOT
|
||||||
version=1.5.0.BUILD-SNAPSHOT
|
version=1.5.0.BUILD-SNAPSHOT
|
||||||
|
|||||||
@@ -67,7 +67,11 @@ public class GemfireCache implements Cache {
|
|||||||
return (value == null ? null : new SimpleValueWrapper(value));
|
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) {
|
public void put(Object key, Object value) {
|
||||||
region.put(key, value);
|
region.put(key, value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user