public final class PathClassLoader extends ClassLoader
Path.
Class loading will will happen in a parent first manner which is the Java SE default may.
| Constructor and Description |
|---|
PathClassLoader(Path path)
Creates a new
PathClassLoader with no parent class loader. |
PathClassLoader(Path path,
ClassLoader parent)
Creates a new
PathClassLoader with a parent class loader. |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
findClass(String name) |
protected URL |
findResource(String name) |
protected Enumeration<URL> |
findResources(String name) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic PathClassLoader(Path path)
PathClassLoader with no parent class loader.path - the path from with to load the classespublic PathClassLoader(Path path, ClassLoader parent)
PathClassLoader with a parent class loader.path - the path from with to load the classesparent - the class loader from which to try loading classes
firstprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionprotected URL findResource(String name)
findResource in class ClassLoaderprotected Enumeration<URL> findResources(String name) throws IOException
findResources in class ClassLoaderIOExceptionCopyright © 2012–2021. All rights reserved.