public static class ClassUtils.BetterClassLoader extends URLClassLoader
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
loadClass(String name)
Tries to load the class from the default system class loader, but if
it isn't found, loads from the internal list of URLs.
|
static ClassLoader |
newInstance(ClassLoader parent,
String... filenames)
Creates a new loader that loads classes from the given array of file names.
|
static ClassLoader |
newInstance(String... filenames)
Creates a new loader that loads classes from the given array of file names.
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic static ClassLoader newInstance(String... filenames)
public static ClassLoader newInstance(ClassLoader parent, String... filenames)
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundException