From 5a8060ae8b6f5e8bdb0a169fd1a592ab7e534e54 Mon Sep 17 00:00:00 2001 From: Paul Ferraro Date: Wed, 11 Jan 2012 10:53:39 -0500 Subject: [PATCH] HHH-6952 Allow extensions of InfinispanRegionFactory to override classloader logic --- .../org/hibernate/cache/infinispan/InfinispanRegionFactory.java | 2 +- .../infinispan/timestamp/TimestampsRegionImplTestCase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java b/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java index b1931ad06f..a218ad00f8 100644 --- a/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java +++ b/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java @@ -450,7 +450,7 @@ public class InfinispanRegionFactory implements RegionFactory { return createCacheWrapper(cache); } - protected ClassLoaderAwareCache createCacheWrapper(AdvancedCache cache) { + protected AdvancedCache createCacheWrapper(AdvancedCache cache) { return new ClassLoaderAwareCache(cache, Thread.currentThread().getContextClassLoader()); } diff --git a/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/timestamp/TimestampsRegionImplTestCase.java b/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/timestamp/TimestampsRegionImplTestCase.java index e0f8953fe6..149d40e66d 100644 --- a/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/timestamp/TimestampsRegionImplTestCase.java +++ b/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/timestamp/TimestampsRegionImplTestCase.java @@ -141,7 +141,7 @@ public class TimestampsRegionImplTestCase extends AbstractGeneralDataRegionTestC // } @Override - protected ClassLoaderAwareCache createCacheWrapper(AdvancedCache cache) { + protected AdvancedCache createCacheWrapper(AdvancedCache cache) { return new ClassLoaderAwareCache(cache, Thread.currentThread().getContextClassLoader()) { @Override public void addListener(Object listener) {