Top Description Fields Constructors Methods
org.codehaus.commons.compiler.util

public Class ResourceFinderClassLoader

extends ClassLoader
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException, .InputStream, org.codehaus.commons.compiler.util.resource.Resource, .ResourceFinder, org.codehaus.commons.nullanalysis.Nullable

A ClassLoader that uses a org.codehaus.commons.compiler.util.resource.ResourceFinder to find ".class" files.

Field Summary

Modifier and TypeField and Description
private final ResourceFinder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Class<?>
findClass(String
The binary name of the class
className
)

Overrides java.lang.ClassLoader.findClass.

Finds the class with the specified binary name.
public ResourceFinder

Returns:

The underlying ResourceFinder
getResourceFinder
()

Inherited from java.lang.ClassLoader:
clearAssertionStatusdefineClassdefineClassdefineClassdefineClassdefinePackagefindClassfindLibraryfindLoadedClassfindResourcefindResourcefindResourcesfindSystemClassgetClassLoadingLockgetDefinedPackagegetDefinedPackagesgetNamegetPackagegetPackagesgetParentgetPlatformClassLoadergetResourcegetResourceAsStreamgetResourcesgetSystemClassLoadergetSystemResourcegetSystemResourceAsStreamgetSystemResourcesgetUnnamedModuleisRegisteredAsParallelCapableloadClassloadClassregisterAsParallelCapableresolveClassresourcessetClassAssertionStatussetDefaultAssertionStatussetPackageAssertionStatussetSigners

Field Detail

resourceFinderback to summary
private final ResourceFinder resourceFinder

Constructor Detail

ResourceFinderClassLoaderback to summary
public ResourceFinderClassLoader(ResourceFinder resourceFinder, ClassLoader parent)

Method Detail

findClassback to summary
protected Class<?> findClass(String className) throws ClassNotFoundException

Overrides java.lang.ClassLoader.findClass.

Doc from java.lang.ClassLoader.findClass.

Finds the class with the specified binary name. This method should be overridden by class loader implementations that follow the delegation model for loading classes, and will be invoked by the loadClass method after checking the parent class loader for the requested class.

Parameters
className:String

The binary name of the class

Returns:Class<?>

The resulting Class object

Annotations
@Override
Exceptions
ClassNotFoundException:
If the class could not be found
getResourceFinderback to summary
public ResourceFinder getResourceFinder()
Returns:ResourceFinder

The underlying ResourceFinder