HHH-6952 Allow extensions of InfinispanRegionFactory to override classloader logic
This commit is contained in:
parent
8a4d604d9c
commit
5a8060ae8b
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue