Package org.nuxeo.osgi.application
Class MutableClassLoaderDelegate
- java.lang.Object
-
- org.nuxeo.osgi.application.MutableClassLoaderDelegate
-
- All Implemented Interfaces:
MutableClassLoader
public class MutableClassLoaderDelegate extends Object implements MutableClassLoader
- Since:
- 5.4.2
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Method
addURL
protected ClassLoader
cl
-
Constructor Summary
Constructors Constructor Description MutableClassLoaderDelegate(ClassLoader cl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addURL(URL url)
ClassLoader
getClassLoader()
Class<?>
loadClass(String startupClass)
-
-
-
Field Detail
-
cl
protected final ClassLoader cl
-
addURL
protected Method addURL
-
-
Constructor Detail
-
MutableClassLoaderDelegate
public MutableClassLoaderDelegate(ClassLoader cl) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-
Method Detail
-
addURL
public void addURL(URL url)
- Specified by:
addURL
in interfaceMutableClassLoader
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfaceMutableClassLoader
-
loadClass
public Class<?> loadClass(String startupClass) throws ClassNotFoundException
- Specified by:
loadClass
in interfaceMutableClassLoader
- Parameters:
startupClass
- The binary name of the class- Returns:
- The resulting Class object
- Throws:
ClassNotFoundException
- If the class was not found
-
-