ClassLoader for classes found by ClassGraph during scanning.
| Modifier and Type | Field and Description |
|---|---|
| private Set | addedClassLoaderDelegationOrder
The ordered set of overridden or added classloaders to try delegating to. |
| private final ClassLoader | classpathClassLoader
A |
| private Set | environmentClassLoaderDelegationOrder
The ordered set of environment classloaders to try delegating to. |
| private final boolean | initializeLoadedClasses
Whether or not to initialize loaded classes. |
| private List | overrideClassLoaders
Any override classloader(s). |
| private final ScanResult | scanResult
The scan result. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Class | findClass(final String
The binary name of the class className)Overrides java. Finds the class with the specified binary name. |
| public URL | getResource(final String
The resource name path)Overrides java. Finds the resource with the given name. |
| public InputStream | getResourceAsStream(final String
The resource name path)Overrides java. Returns an input stream for reading the specified resource. |
| public Enumeration | getResources(final String
The resource name path)Overrides java. Finds all the resources with the given name. |
| public URL[] |
| addedClassLoaderDelegationOrder | back to summary |
|---|---|
| private Set<ClassLoader> addedClassLoaderDelegationOrder The ordered set of overridden or added classloaders to try delegating to. | |
| classpathClassLoader | back to summary |
|---|---|
| private final ClassLoader classpathClassLoader A | |
| environmentClassLoaderDelegationOrder | back to summary |
|---|---|
| private Set<ClassLoader> environmentClassLoaderDelegationOrder The ordered set of environment classloaders to try delegating to. | |
| initializeLoadedClasses | back to summary |
|---|---|
| private final boolean initializeLoadedClasses Whether or not to initialize loaded classes. | |
| overrideClassLoaders | back to summary |
|---|---|
| private List<ClassLoader> overrideClassLoaders Any override classloader(s). | |
| scanResult | back to summary |
|---|---|
| private final ScanResult scanResult The scan result. | |
| ClassGraphClassLoader | back to summary |
|---|---|
| pack-priv ClassGraphClassLoader(final ScanResult scanResult) Constructor.
| |
| findClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. 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
| |
| getResource | back to summary |
|---|---|
| public URL getResource(final String path) Overrides java. Doc from java. Finds the resource with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a ' Resources in named modules are subject to the encapsulation rules
specified by
| |
| getResourceAsStream | back to summary |
|---|---|
| public InputStream getResourceAsStream(final String path) Overrides java. Doc from java. Returns an input stream for reading the specified resource. The search order is described in the documentation for Resources in named modules are subject to the encapsulation rules
specified by
| |
| getResources | back to summary |
|---|---|
| public Enumeration Overrides java. Doc from java. Finds all the resources with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a Resources in named modules are subject to the encapsulation rules
specified by
| |
| getURLs | back to summary |
|---|---|
| public URL[] getURLs() Get classpath URLs.
| |