Interface ClasspathScanner
-
- All Known Implementing Classes:
ClasspathScannerImpl
public interface ClasspathScanner
Used to scan a portion of the classpath for files that match a particular pattern, defined by aClasspathMatcher
.- Since:
- 5.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>
scan(java.lang.String packagePath, ClasspathMatcher matcher)
Perform a scan of the indicated package path and any nested packages.
-
-
-
Method Detail
-
scan
java.util.Set<java.lang.String> scan(java.lang.String packagePath, ClasspathMatcher matcher) throws java.io.IOException
Perform a scan of the indicated package path and any nested packages.- Parameters:
packagePath
- defines the root of the search as a path, e.g., "org/apache/tapestry5/" not "org.apache.tapestry5"matcher
- passed each potential match to determine which are included in the final result- Returns:
- matching paths based on the search and the matcher
- Throws:
java.io.IOException
- if some error occurrs.
-
-