Interface ResourceAndClassScanner
-
- All Known Implementing Classes:
AndroidScanner,ClassPathScanner
public interface ResourceAndClassScanner
Scanner for both resources and classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Class<?>>scanForClasses(Location location, Predicate<Class<?>> predicate)Scans the classpath for concrete classes under the specified package implementing this interface.List<io.avaje.classpath.scanner.Resource>scanForResources(Location location, Predicate<String> predicate)Scans the classpath for resources under the specified location, starting with the specified prefix and ending with the specified suffix.
-
-
-
Method Detail
-
scanForResources
List<io.avaje.classpath.scanner.Resource> scanForResources(Location location, Predicate<String> predicate)
Scans the classpath for resources under the specified location, starting with the specified prefix and ending with the specified suffix.- Parameters:
location- The location in the classpath to start searching. Subdirectories are also searched.predicate- The predicate used to match the resource names.- Returns:
- The resources that were found.
-
scanForClasses
List<Class<?>> scanForClasses(Location location, Predicate<Class<?>> predicate)
Scans the classpath for concrete classes under the specified package implementing this interface. Non-instantiable abstract classes are filtered out.- Parameters:
location- The location (package) in the classpath to start scanning. Subpackages are also scanned.predicate- The predicate used to match against scanned classes.- Returns:
- The non-abstract classes that were found.
-
-