Top Description Fields Constructors Methods
nonapi.io.github.classgraph.classpath

public Class ClassLoaderFinder

extends Object
Class Inheritance
Imports
java.util.LinkedHashSet, nonapi.io.github.classgraph.reflection.ReflectionUtils, nonapi.io.github.classgraph.scanspec.ScanSpec, nonapi.io.github.classgraph.utils.LogNode

A class to find the unique ordered classpath elements.

Field Summary

Modifier and TypeField and Description
private final ClassLoader[]
contextClassLoaders

The context class loaders.

Constructor Summary

AccessConstructor and Description
pack-priv
ClassLoaderFinder(final ScanSpec
The scan spec, or null if none available.
scanSpec
,
final ReflectionUtils reflectionUtils, final LogNode
The log.
log
)

A class to find the unique ordered classpath elements.

Method Summary

Modifier and TypeMethod and Description
public ClassLoader[]

Returns:

The context classloader, and any other classloader that is not an ancestor of context classloader.
getContextClassLoaders
()

Get the context class loaders.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextClassLoadersback to summary
private final ClassLoader[] contextClassLoaders

The context class loaders.

Constructor Detail

ClassLoaderFinderback to summary
pack-priv ClassLoaderFinder(final ScanSpec scanSpec, final ReflectionUtils reflectionUtils, final LogNode log)

A class to find the unique ordered classpath elements.

Parameters
scanSpec:ScanSpec

The scan spec, or null if none available.

log:LogNode

The log.

Method Detail

getContextClassLoadersback to summary
public ClassLoader[] getContextClassLoaders()

Get the context class loaders.

Returns:ClassLoader[]

The context classloader, and any other classloader that is not an ancestor of context classloader.