Package org.eclipse.ease
Class DelegatingJarClassLoader
java.lang.Object
java.lang.ClassLoader
org.eclipse.ease.DelegatingJarClassLoader
public class DelegatingJarClassLoader extends ClassLoader
A class loader for script interpreters. This class loader allows to add arbitrary
URL
s that will be queried for class loading. When the requested
class cannot be found, it delegates loading to its parent classloader.-
Constructor Summary
Constructors Constructor Description DelegatingJarClassLoader(ClassLoader parent)
-
Method Summary
Modifier and Type Method Description Class<?>
loadClass(String name)
void
registerURL(URL url)
Add a URL to the search path of the classloader.Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getDefinedPackage, getDefinedPackages, getName, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
-
Constructor Details
-
DelegatingJarClassLoader
-
-
Method Details
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
registerURL
Add a URL to the search path of the classloader. Currently detects classes only, not resources.- Parameters:
url
- url to add to classpath
-