public interface PackageScan
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Set<Class<T>> |
getSubTypesOf(String pkg,
Class<T> requestClass)
Scan all appropriate Class object through the package name and Class object.
|
<T> Set<Class<T>> |
getTypesAnnotatedWith(String pkg,
Class<? extends Annotation> annotation)
Scan all appropriate Class object through the package name and annotation.
|
<T> Set<Class<T>> getSubTypesOf(String pkg, Class<T> requestClass)
T - Class typepkg - package name,for example, com.alibaba.nacos.commonrequestClass - super class<T> Set<Class<T>> getTypesAnnotatedWith(String pkg, Class<? extends Annotation> annotation)
T - Class typepkg - package name,for example, com.alibaba.nacos.commonannotation - annotationCopyright © 2018–2024 Alibaba Group. All rights reserved.