HHH-6952 Allow extensions of InfinispanRegionFactory to override classloader logic

This commit is contained in:
Paul Ferraro 2012-01-11 10:53:39 -05:00 committed by Galder Zamarreño
parent 8a4d604d9c
commit 5a8060ae8b
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}

View File

@ -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) {