| Modifier and Type | Class and Description |
|---|---|
| public static class | ClasspathOrder.
A classpath element and the |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | AUTOMATIC_PACKAGE_ROOT_SUFFIXES
Suffixes for automatic package roots, e.g. "!/BOOT-INF/classes". |
| private final Set | classpathEntryUniqueResolvedPaths
Unique classpath entries. |
| private final List | order
The classpath order. |
| public ReflectionUtils | |
| private final ScanSpec | scanSpec
The scan spec. |
| private static final Pattern | schemeMatcher
Match URL schemes (must consist of at least two chars, otherwise this is Windows drive letter). |
| Access | Constructor and Description |
|---|---|
| pack-priv | ClasspathOrder(final ScanSpec
the scan spec scanSpec, final ReflectionUtils reflectionUtils)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true (and add the classpath element) if pathElement is not null or empty, otherwise return false.the ClassLoader that this classpath was obtained from. classLoader, final ScanSpec the scan spec scanSpec, final LogNode the LogNode instance to use if logging in verbose mode. log)Add classpath entries, separated by the system path separator character. |
| private boolean | Returns: true, if added and uniquethe path element in string format pathElementStr, final ClassLoader the classloader classLoader, final ScanSpec the scan spec scanSpec)Add a classpath entry. |
| public boolean | Returns: true (and add the classpath element) if pathElement is not null, empty, nonexistent, or filtered out by user-specified criteria, otherwise return false.the pathElement, final ClassLoader String path, URL or URI of the classpath element, or some object whose
Object#toString() method can be called to obtain the classpath element.the ClassLoader that this classpath element was obtained from. classLoader, final ScanSpec the scan spec scanSpec, final LogNode the LogNode instance to use if logging in verbose mode. log)Add a classpath element relative to a base file. |
| public boolean | Returns: true (and add the classpath element) if pathEl)ement is not null or empty, otherwise return false.the object containing a classpath string or strings. pathObject, final ClassLoader the ClassLoader that this classpath was obtained from. classLoader, final ScanSpec the scan spec scanSpec, final LogNode the LogNode instance to use if logging in verbose mode. log)Add classpath entries from an object obtained from reflection. |
| public boolean | Returns: true (and add the classpath element) if pathElement is not null or empty, otherwise return false.the delimited string of URLs or paths of the classpath. pathStr, final ClassLoader the ClassLoader that this classpath was obtained from. classLoader, final ScanSpec the scan spec scanSpec, final LogNode the LogNode instance to use if logging in verbose mode. log)Add classpath entries, separated by the system path separator character. |
| pack-priv boolean | Returns: true, if added and uniquethe system classpath entry -- the path string should already have been run through
FastPathResolver.resolve(FileUtils.currDirPath(), path) pathEntry, final ClassLoader the classloader classLoader)Add a system classpath entry. |
| private boolean | |
| public Set | Returns: the classpath entry strings.Get the unique classpath entry strings. |
| public List | Returns: the classpath order.Get the order of classpath elements, uniquified and in order. |
| AUTOMATIC_PACKAGE_ROOT_SUFFIXES | back to summary |
|---|---|
| private static final List<String> AUTOMATIC_PACKAGE_ROOT_SUFFIXES Suffixes for automatic package roots, e.g. "!/BOOT-INF/classes". | |
| classpathEntryUniqueResolvedPaths | back to summary |
|---|---|
| private final Set<String> classpathEntryUniqueResolvedPaths Unique classpath entries. | |
| order | back to summary |
|---|---|
| private final List<ClasspathOrder. | |
| reflectionUtils | back to summary |
|---|---|
| public ReflectionUtils reflectionUtils | |
| scanSpec | back to summary |
|---|---|
| private final ScanSpec scanSpec The scan spec. | |
| schemeMatcher | back to summary |
|---|---|
| private static final Pattern schemeMatcher Match URL schemes (must consist of at least two chars, otherwise this is Windows drive letter). | |
| ClasspathOrder | back to summary |
|---|---|
| pack-priv ClasspathOrder(final ScanSpec scanSpec, final ReflectionUtils reflectionUtils) Constructor.
| |
| addClasspathEntries | back to summary |
|---|---|
| public boolean addClasspathEntries(final List<Object> overrideClasspath, final ClassLoader classLoader, final ScanSpec scanSpec, final LogNode log) Add classpath entries, separated by the system path separator character.
| |
| addClasspathEntry | back to summary |
|---|---|
| private boolean addClasspathEntry(final Object pathElement, final String pathElementStr, final ClassLoader classLoader, final ScanSpec scanSpec) Add a classpath entry. | |
| addClasspathEntry | back to summary |
|---|---|
| public boolean addClasspathEntry(final Object pathElement, final ClassLoader classLoader, final ScanSpec scanSpec, final LogNode log) Add a classpath element relative to a base file. May be called by a ClassLoaderHandler to add classpath elements that it knows about. ClassLoaders will be called in order.
| |
| addClasspathEntryObject | back to summary |
|---|---|
| public boolean addClasspathEntryObject(final Object pathObject, final ClassLoader classLoader, final ScanSpec scanSpec, final LogNode log) Add classpath entries from an object obtained from reflection. The object may be a
| |
| addClasspathPathStr | back to summary |
|---|---|
| public boolean addClasspathPathStr(final String pathStr, final ClassLoader classLoader, final ScanSpec scanSpec, final LogNode log) Add classpath entries, separated by the system path separator character.
| |
| addSystemClasspathEntry | back to summary |
|---|---|
| pack-priv boolean addSystemClasspathEntry(final String pathEntry, final ClassLoader classLoader) Add a system classpath entry.
| |
| filter | back to summary |
|---|---|
| private boolean filter(final URL classpathElementURL, final String classpathElementPath) Test to see if a classpath element has been filtered out by the user. | |
| getClasspathEntryUniqueResolvedPaths | back to summary |
|---|---|
| public Set Get the unique classpath entry strings. | |
| getOrder | back to summary |
|---|---|
| public List Get the order of classpath elements, uniquified and in order.
| |
ClassLoader it was obtained from.
| Modifier and Type | Field and Description |
|---|---|
| public final ClassLoader | classLoader
The classloader the classpath element was obtained from. |
| public final Object | classpathEntryObj
The classpath entry object (a |
| Access | Constructor and Description |
|---|---|
| public | ClasspathEntry(final Object classpathEntryObj, final ClassLoader
the classloader the classpath element was obtained from. classLoader)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| classLoader | back to summary |
|---|---|
| public final ClassLoader classLoader The classloader the classpath element was obtained from. | |
| classpathEntryObj | back to summary |
|---|---|
| public final Object classpathEntryObj The classpath entry object (a | |
| ClasspathEntry | back to summary |
|---|---|
| public ClasspathEntry(final Object classpathEntryObj, final ClassLoader classLoader) Constructor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |