Class ResourceFinderClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.codehaus.commons.compiler.util.ResourceFinderClassLoader
-
public class ResourceFinderClassLoader extends java.lang.ClassLoader
AClassLoader
that uses aResourceFinder
to find ".class" files.
-
-
Constructor Summary
Constructors Constructor Description ResourceFinderClassLoader(ResourceFinder resourceFinder, java.lang.ClassLoader parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<?>
findClass(java.lang.String className)
ResourceFinder
getResourceFinder()
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
ResourceFinderClassLoader
public ResourceFinderClassLoader(ResourceFinder resourceFinder, java.lang.ClassLoader parent)
-
-
Method Detail
-
getResourceFinder
public ResourceFinder getResourceFinder()
- Returns:
- The underlying
ResourceFinder
-
findClass
protected java.lang.Class<?> findClass(@Nullable java.lang.String className) throws java.lang.ClassNotFoundException
- Overrides:
findClass
in classjava.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
-
-