class UserClassLoader extends URLClassLoader
URLClassLoader
that keeps a list of paths in memory.
Adds System.getProperty("user.dir")
as default path if none are added.Constructor and Description |
---|
UserClassLoader() |
UserClassLoader(ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
addPaths(String... paths) |
protected Class<?> |
findClass(String name) |
String[] |
getPaths() |
addURL, close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public UserClassLoader()
public UserClassLoader(ClassLoader parent)
public void addPaths(String... paths)
public String[] getPaths()
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
Copyright © 2020. All rights reserved.