private static Class < ? > findClass ( String name ) throws LauncherException { for ( ClassLoader clsLoader : new ClassLoader [ ] { Thread . currentThread ( ) . getContextClassLoader ( ) , CLASS . getClassLoader ( ) } ) try { return clsLoader . loadClass ( name ) ; } catch ( ClassNotFoundException ignored ) { logger . debug ( "Ignoring ClassNotFound exception looking for class." , ignored ) ; } throw new LauncherException ( "Unable to find class " + name + " via either the thread context class loader nor our own class loader." ) ; }
Tries to find a class by name using the thread context class loader and this class s class loader .