Search in sources :

Example 1 with Scanner

use of com.blade.ioc.bean.Scanner in project blade by biezhi.

the class DynamicContext method recursionFindClasses.

public static Stream<ClassInfo> recursionFindClasses(String packageName) {
    Scanner scanner = Scanner.builder().packageName(packageName).recursive(true).build();
    Set<ClassInfo> classInfos = getClassReader(packageName).readClasses(scanner);
    return classInfos.stream();
}
Also used : Scanner(com.blade.ioc.bean.Scanner) ClassInfo(com.blade.ioc.bean.ClassInfo)

Aggregations

ClassInfo (com.blade.ioc.bean.ClassInfo)1 Scanner (com.blade.ioc.bean.Scanner)1