com.metapossum.utils.scanner
Interface ClasspathFilter

All Known Implementing Classes:
ClasspathFilter.AcceptEverythingClasspathFilter

public interface ClasspathFilter

Filter for classpath entries.

Provides a mechanism to filter the top-level classpath entries. For example, if the classpath is jar1.jar:jar2.jar:/home/user/classes:. and each entry contains the target package, the calls will be:

Author:
Steve van Loben Sels
See Also:
PackageScanner

Nested Class Summary
static class ClasspathFilter.AcceptEverythingClasspathFilter
          Convenience implementation that doesn't filter anything.
 
Method Summary
 boolean acceptDirectory(java.io.File directory)
          return true if the calling PackageScanner should proceed with directory.
 boolean acceptJarFile(java.util.jar.JarFile jarFile)
          return true if the calling PackageScanner should proceed with jarFile.
 

Method Detail

acceptJarFile

boolean acceptJarFile(java.util.jar.JarFile jarFile)
return true if the calling PackageScanner should proceed with jarFile.


acceptDirectory

boolean acceptDirectory(java.io.File directory)
return true if the calling PackageScanner should proceed with directory.



Copyright © 2011. All Rights Reserved.