public class RecursiveScanner extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RecursiveScanner.FilePathMatcher
A class used for associating a FilePathTester with a FileMatchProcessor.
|
static interface |
RecursiveScanner.FilePathTester
An interface used to test whether a file's relative path matches a given specification.
|
Constructor and Description |
---|
RecursiveScanner(ClasspathFinder classpath,
String[] whitelistedPaths,
String[] blacklistedPaths) |
Modifier and Type | Method and Description |
---|---|
void |
addFilePathMatcher(RecursiveScanner.FilePathMatcher filePathMatcher) |
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(boolean scanTimestampsOnly)
Scans the classpath for matching files, and calls any match processors if a match is identified.
|
public RecursiveScanner(ClasspathFinder classpath, String[] whitelistedPaths, String[] blacklistedPaths)
public void addFilePathMatcher(RecursiveScanner.FilePathMatcher filePathMatcher)
public void scan(boolean scanTimestampsOnly)
public boolean classpathContentsModifiedSinceScan()
public long classpathContentsLastModifiedTime()
Copyright © 2015. All rights reserved.