Class ClassLoaderAndModuleFinder
- java.lang.Object
-
- io.github.lukehutch.fastclasspathscanner.utils.ClassLoaderAndModuleFinder
-
public class ClassLoaderAndModuleFinder extends Object
A class to find the unique ordered classpath elements.
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderAndModuleFinder(ScanSpec scanSpec, LogNode log)
A class to find the unique ordered classpath elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader[]
getClassLoaders()
Get context classloader, and any other classloader that is not an ancestor of context classloader.List<ModuleRef>
getNonSystemModuleRefs()
Get non-system modules as ModuleRef wrappers, or null if no modules were found (e.g.List<ModuleRef>
getSystemModuleRefs()
Get system modules as ModuleRef wrappers, or null if no modules were found (e.g.
-
-
-
Method Detail
-
getClassLoaders
public ClassLoader[] getClassLoaders()
Get context classloader, and any other classloader that is not an ancestor of context classloader.
-
getSystemModuleRefs
public List<ModuleRef> getSystemModuleRefs()
Get system modules as ModuleRef wrappers, or null if no modules were found (e.g. on JDK 7 or 8).
-
-