Interface FilenameMatchProcessor
-
- All Superinterfaces:
FileMatchProcessorAny
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FilenameMatchProcessor extends FileMatchProcessorAny
The method to run when a file with a matching path is found on the classpath.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
processMatch(File classpathElt, String relativePath)
Process a file with a matching filename or path.
-
-
-
Method Detail
-
processMatch
void processMatch(File classpathElt, String relativePath) throws IOException
Process a file with a matching filename or path. Does not actually open the file, just provides the containing classpath element (jar or directory) and the relative path.You can get a fully-qualified URL for the file (even for files inside jars) by calling ClasspathUtils.getClasspathResourceURL(classpathElt, relativePath)
- Parameters:
classpathElt
- The classpath element that contained the match (a jarfile or directory).relativePath
- The path of the matching file relative to the classpath element that contained the match.- Throws:
IOException
- If anything goes wrong while processing the file.
-
-