public interface ClassPathScanner
Scans the class path for resources or classes.
| 限定符和类型 | 方法和说明 |
|---|---|
List<Class<?>> |
scanForClasses(String location,
ClassFilter filter)
Scan of classes using the starting package and filter.
|
List<Resource> |
scanForResources(String location,
ResourceFilter filter)
Scan for file resources using the starting location and filter.
|
List<Resource> scanForResources(String location, ResourceFilter filter)
location - The path location from which the scan will start.filter - The filter used to match resources.List<Class<?>> scanForClasses(String location, ClassFilter filter)
location - The package location from which the scan will start.filter - The filter used to match classes.Copyright © 2020. All rights reserved.