private URL loadResource ( String configurationResourceName ) { ClassLoader standardClassloader = ClassLoaderUtil . getStandardClassLoader ( ) ; URL url = null ; if ( standardClassloader != null ) { url = standardClassloader . getResource ( configurationResourceName ) ; } if ( url == null ) { url = this . getClass ( ) . getResource ( configurationResourceName ) ; } log . info ( "Creating EhCacheFactory from a specified resource: " + configurationResourceName + " Resolved to URL: " + url ) ; if ( url == null ) { log . warn ( "A configurationResourceName was set to {} but the resource could not be loaded from the classpath.Ehcache will configure itself using defaults." , configurationResourceName ) ; } return url ; }
Load resource .