public class RecursiveScanner extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RecursiveScanner.FileMatchProcessorWrapper
An interface called when the corresponding FilePathTester returns true.
|
static interface |
RecursiveScanner.FilePathTester
An interface used to test whether a file's relative path matches a given specification.
|
Constructor and Description |
---|
RecursiveScanner(ClasspathFinder classpathFinder,
ScanSpec scanSpec)
Recursive classpath scanner.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilePathMatcher(RecursiveScanner.FilePathTester filePathTester,
RecursiveScanner.FileMatchProcessorWrapper fileMatchProcessorWrapper) |
long |
classpathContentsLastModifiedTime()
Returns the maximum "last modified" timestamp in the classpath (in epoch millis), or zero if scan() has not
yet been called (or if nothing was found on the classpath).
|
boolean |
classpathContentsModifiedSinceScan()
Returns true if the classpath contents have been changed since scan() was last called.
|
void |
scan()
Scans the classpath for matching files, and calls any FileMatchProcessors if a match is identified.
|
public RecursiveScanner(ClasspathFinder classpathFinder, ScanSpec scanSpec)
public void addFilePathMatcher(RecursiveScanner.FilePathTester filePathTester, RecursiveScanner.FileMatchProcessorWrapper fileMatchProcessorWrapper)
public void scan()
public boolean classpathContentsModifiedSinceScan()
public long classpathContentsLastModifiedTime()
Copyright © 2016. All rights reserved.