class DynamicClassLoader extends URLClassLoader
Constructor and Description |
---|
DynamicClassLoader(URL[] urls,
ClassLoader parent)
Constructs a new URLClassLoader for the given URLs.
|
Modifier and Type | Method and Description |
---|---|
void |
addUniqueURL(URL url)
Add a URL to a class path only if has not already been added.
|
Class<?> |
loadClass(String name) |
addURL, close, definePackage, findClass, 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, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public DynamicClassLoader(URL[] urls, ClassLoader parent)
urls
- the URLs from which to load classes and resourcesparent
- the parent class loader for delegationSecurityException
- if a security manager exists and its checkCreateClassLoader
method doesn't allow creation of a class loader.public void addUniqueURL(URL url)
url
- the url to add to the class pathpublic Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses