HHH-9497 Remove call to Ehcache ClassLoaderUtil.getStandardClassLoader()
It has been removed in Ehcache 2.8.3+.
This commit is contained in:
parent
bea160a7ad
commit
ec849edfad
|
@ -29,7 +29,6 @@ import java.util.Properties;
|
||||||
|
|
||||||
import net.sf.ehcache.CacheManager;
|
import net.sf.ehcache.CacheManager;
|
||||||
import net.sf.ehcache.Ehcache;
|
import net.sf.ehcache.Ehcache;
|
||||||
import net.sf.ehcache.util.ClassLoaderUtil;
|
|
||||||
|
|
||||||
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
|
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
|
||||||
import org.hibernate.cache.CacheException;
|
import org.hibernate.cache.CacheException;
|
||||||
|
@ -199,7 +198,7 @@ abstract class AbstractEhcacheRegionFactory implements RegionFactory {
|
||||||
url = classLoaderService.locateResource( configurationResourceName );
|
url = classLoaderService.locateResource( configurationResourceName );
|
||||||
}
|
}
|
||||||
if ( url == null ) {
|
if ( url == null ) {
|
||||||
final ClassLoader standardClassloader = ClassLoaderUtil.getStandardClassLoader();
|
final ClassLoader standardClassloader = Thread.currentThread().getContextClassLoader();
|
||||||
if ( standardClassloader != null ) {
|
if ( standardClassloader != null ) {
|
||||||
url = standardClassloader.getResource( configurationResourceName );
|
url = standardClassloader.getResource( configurationResourceName );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue