HHH-9497 Remove call to Ehcache ClassLoaderUtil.getStandardClassLoader()

It has been removed in Ehcache 2.8.3+.
This commit is contained in:
Guillaume Smet 2014-11-13 20:33:50 +01:00 committed by Brett Meyer
parent bea160a7ad
commit ec849edfad
1 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,6 @@ import java.util.Properties;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.Ehcache;
import net.sf.ehcache.util.ClassLoaderUtil;
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
import org.hibernate.cache.CacheException;
@ -199,7 +198,7 @@ abstract class AbstractEhcacheRegionFactory implements RegionFactory {
url = classLoaderService.locateResource( configurationResourceName );
}
if ( url == null ) {
final ClassLoader standardClassloader = ClassLoaderUtil.getStandardClassLoader();
final ClassLoader standardClassloader = Thread.currentThread().getContextClassLoader();
if ( standardClassloader != null ) {
url = standardClassloader.getResource( configurationResourceName );
}