public final class ClassLoaderUtil extends Object
|Modifier and Type||Method and Description|
Gets information about URL class loaders.
Checks, whether the class that was not found in the given exception, can be resolved through the given class loader.
public static String getUserCodeClassLoaderInfo(ClassLoader loader)
NOTE: This method makes a best effort to provide information about the classloader, and never throws an exception.
loader- The classloader to get the info string for.
public static boolean validateClassLoadable(ClassNotFoundException cnfe, ClassLoader cl)
cnfe- The ClassNotFoundException that defines the name of the class.
cl- The class loader to use for the class resolution.
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.