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 MethodaddURLprotected ClassLoadercl
-
Constructor Summary
Constructors Constructor Description MutableClassLoaderDelegate(ClassLoader cl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddURL(URL url)ClassLoadergetClassLoader()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:
addURLin interfaceMutableClassLoader
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceMutableClassLoader
-
loadClass
public Class<?> loadClass(String startupClass) throws ClassNotFoundException
- Specified by:
loadClassin interfaceMutableClassLoader- Parameters:
startupClass- The binary name of the class- Returns:
- The resulting Class object
- Throws:
ClassNotFoundException- If the class was not found
-
-