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 classpathFinder,
String[] scanSpecs)
Recursive classpath scanner.
|
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()
Scans the classpath for matching files, and calls any FileMatchProcessors if a match is identified.
|
public RecursiveScanner(ClasspathFinder classpathFinder, String[] scanSpecs)
public void addFilePathMatcher(RecursiveScanner.FilePathMatcher filePathMatcher)
public void scan()
public boolean classpathContentsModifiedSinceScan()
public long classpathContentsLastModifiedTime()
Copyright © 2015. All rights reserved.