@ Override protected Class < ? > loadClass ( String name , boolean resolve ) throws ClassNotFoundException { synchronized ( LaunchedURLClassLoader . LOCK_PROVIDER . getLock ( this , name ) ) { Class < ? > loadedClass = findLoadedClass ( name ) ; if ( loadedClass == null ) { Handler . setUseFastConnectionExceptions ( true ) ; try { loadedClass = doLoadClass ( name ) ; } finally { Handler . setUseFastConnectionExceptions ( false ) ; } } if ( resolve ) { resolveClass ( loadedClass ) ; } return loadedClass ; } }
Attempt to load classes from the URLs before delegating to the parent loader .