Class ClassLoaderFinder
java.lang.Object
nonapi.io.github.classgraph.classpath.ClassLoaderFinder
A class to find the unique ordered classpath elements.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClassLoaderFinder
(ScanSpec scanSpec, ReflectionUtils reflectionUtils, LogNode log) A class to find the unique ordered classpath elements. -
Method Summary
Modifier and TypeMethodDescriptionGet the context class loaders.
-
Field Details
-
contextClassLoaders
The context class loaders.
-
-
Constructor Details
-
ClassLoaderFinder
ClassLoaderFinder(ScanSpec scanSpec, ReflectionUtils reflectionUtils, LogNode log) A class to find the unique ordered classpath elements.- Parameters:
scanSpec
- The scan spec, or null if none available.log
- The log.
-
-
Method Details
-
getContextClassLoaders
Get the context class loaders.- Returns:
- The context classloader, and any other classloader that is not an ancestor of context classloader.
-