HHH-13118 Use the provided class loader even when using the default URI

This commit is contained in:
Henri Tremblay 2018-11-22 13:11:16 -05:00 committed by Guillaume Smet
parent 25554375f2
commit 73345d5263
1 changed files with 2 additions and 2 deletions

View File

@ -206,10 +206,10 @@ public class JCacheRegionFactory extends RegionFactoryTemplate {
final CacheManager cacheManager;
final URI cacheManagerUri = getUri( settings, properties );
if ( cacheManagerUri != null ) {
cacheManager = cachingProvider.getCacheManager( cacheManagerUri, getClassLoader( cachingProvider ));
cacheManager = cachingProvider.getCacheManager( cacheManagerUri, getClassLoader( cachingProvider ) );
}
else {
cacheManager = cachingProvider.getCacheManager();
cacheManager = cachingProvider.getCacheManager( cachingProvider.getDefaultURI(), getClassLoader( cachingProvider ) );
}
return cacheManager;
}