public interface ResourceAndClassScanner
| 限定符和类型 | 方法和说明 |
|---|---|
List<Class<?>> |
scanForClasses(Location location,
ClassFilter predicate)
Scans the classpath for concrete classes under the specified package implementing this interface.
|
List<Resource> |
scanForResources(Location location,
ResourceFilter predicate)
Scans the classpath for resources under the specified location, starting with the specified prefix and ending with
the specified suffix.
|
List<Resource> scanForResources(Location location, ResourceFilter predicate)
location - The location in the classpath to start searching. Subdirectories are also searched.predicate - The predicate used to match the resource names.List<Class<?>> scanForClasses(Location location, ClassFilter predicate)
location - The location (package) in the classpath to start scanning.
Subpackages are also scanned.predicate - The predicate used to match against scanned classes.Copyright © 2020. All rights reserved.