public class ClasspathFinder extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
addClasspathElement(String pathElement,
ClassLoader classLoader,
LogNode log)
Add a classpath element relative to a base file.
|
boolean |
addClasspathElements(String pathStr,
ClassLoader classLoader,
LogNode log)
Add classpath elements, separated by the system path separator character.
|
ClassLoader[] |
getClassLoaderOrder()
Get the order in which ClassLoaders are called to load classes.
|
List<io.github.lukehutch.fastclasspathscanner.scanner.RelativePath> |
getRawClasspathElements()
Get the raw classpath elements obtained from ClassLoaders.
|
public boolean addClasspathElement(String pathElement, ClassLoader classLoader, LogNode log)
pathElement
- the URL or path of the classpath element.classLoader
- the ClassLoader that this classpath element was obtained from.log
- the LogNode instance to use if logging in verbose mode.public boolean addClasspathElements(String pathStr, ClassLoader classLoader, LogNode log)
pathStr
- the delimited string of URLs or paths of the classpath.classLoader
- the ClassLoader that this classpath was obtained from.log
- the LogNode instance to use if logging in verbose mode.public List<io.github.lukehutch.fastclasspathscanner.scanner.RelativePath> getRawClasspathElements()
public ClassLoader[] getClassLoaderOrder()
Copyright © 2017. All rights reserved.