public class ClasspathOrder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClasspathOrder.ClasspathElementAndClassLoader
A classpath element and the
ClassLoader it was obtained from. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addClasspathEntries(java.util.List<java.lang.Object> overrideClasspath,
java.lang.ClassLoader classLoader,
ScanSpec scanSpec,
LogNode log)
Add classpath entries, separated by the system path separator character.
|
boolean |
addClasspathEntry(java.lang.Object pathElement,
java.lang.ClassLoader classLoader,
ScanSpec scanSpec,
LogNode log)
Add a classpath element relative to a base file.
|
boolean |
addClasspathEntryObject(java.lang.Object pathObject,
java.lang.ClassLoader classLoader,
ScanSpec scanSpec,
LogNode log)
Add classpath entries from an object obtained from reflection.
|
boolean |
addClasspathPathStr(java.lang.String pathStr,
java.lang.ClassLoader classLoader,
ScanSpec scanSpec,
LogNode log)
Add classpath entries, separated by the system path separator character.
|
java.util.Set<java.lang.String> |
getClasspathEntryUniqueResolvedPaths()
Get the unique classpath entry strings.
|
java.util.List<ClasspathOrder.ClasspathElementAndClassLoader> |
getOrder()
Get the order of classpath elements, uniquified and in order.
|
public java.util.List<ClasspathOrder.ClasspathElementAndClassLoader> getOrder()
public java.util.Set<java.lang.String> getClasspathEntryUniqueResolvedPaths()
public boolean addClasspathEntry(java.lang.Object pathElement,
java.lang.ClassLoader classLoader,
ScanSpec scanSpec,
LogNode log)
pathElement - the String path, URL or URI of the classpath element, or some object whose
Object.toString() method can be called to obtain the classpath element.classLoader - the ClassLoader that this classpath element was obtained from.scanSpec - the scan speclog - the LogNode instance to use if logging in verbose mode.public boolean addClasspathEntries(java.util.List<java.lang.Object> overrideClasspath,
java.lang.ClassLoader classLoader,
ScanSpec scanSpec,
LogNode log)
overrideClasspath - a list of delimited path String, URL, URI or File objects.classLoader - the ClassLoader that this classpath was obtained from.scanSpec - the scan speclog - the LogNode instance to use if logging in verbose mode.public boolean addClasspathPathStr(java.lang.String pathStr,
java.lang.ClassLoader classLoader,
ScanSpec scanSpec,
LogNode log)
pathStr - the delimited string of URLs or paths of the classpath.classLoader - the ClassLoader that this classpath was obtained from.scanSpec - the scan speclog - the LogNode instance to use if logging in verbose mode.public boolean addClasspathEntryObject(java.lang.Object pathObject,
java.lang.ClassLoader classLoader,
ScanSpec scanSpec,
LogNode log)
URL, a
URI, a File, a Path or a String (containing a single classpath element path,
or several paths separated with File.pathSeparator), a List or other Iterable, or an array object. In the
case of Iterables and arrays, the elements may be any type whose toString() method returns a path or
URL string (including the URL and Path types).pathObject - the object containing a classpath string or strings.classLoader - the ClassLoader that this classpath was obtained from.scanSpec - the scan speclog - the LogNode instance to use if logging in verbose mode.