接口 PackageScan
- 所有已知实现类:
DefaultPackageScan
public interface PackageScan
Scan all appropriate Class object through the package name.
- 作者:
- hujun
-
方法概要
修饰符和类型方法说明getSubTypesOf(String pkg, Class<T> requestClass) Scan all appropriate Class object through the package name and Class object.getTypesAnnotatedWith(String pkg, Class<? extends Annotation> annotation) Scan all appropriate Class object through the package name and annotation.
-
方法详细资料
-
getSubTypesOf
Scan all appropriate Class object through the package name and Class object.- 类型参数:
T- Class type- 参数:
pkg- package name,for example, com.alibaba.nacos.commonrequestClass- super class- 返回:
- a set contains Class
-
getTypesAnnotatedWith
Scan all appropriate Class object through the package name and annotation.- 类型参数:
T- Class type- 参数:
pkg- package name,for example, com.alibaba.nacos.commonannotation- annotation- 返回:
- a set contains Class object
-