接口 PackageScan

所有已知实现类:
DefaultPackageScan

public interface PackageScan
Scan all appropriate Class object through the package name.
作者:
hujun
  • 方法详细资料

    • getSubTypesOf

      <T> Set<Class<T>> getSubTypesOf(String pkg, Class<T> requestClass)
      Scan all appropriate Class object through the package name and Class object.
      类型参数:
      T - Class type
      参数:
      pkg - package name,for example, com.alibaba.nacos.common
      requestClass - super class
      返回:
      a set contains Class
    • getTypesAnnotatedWith

      <T> Set<Class<T>> getTypesAnnotatedWith(String pkg, Class<? extends Annotation> annotation)
      Scan all appropriate Class object through the package name and annotation.
      类型参数:
      T - Class type
      参数:
      pkg - package name,for example, com.alibaba.nacos.common
      annotation - annotation
      返回:
      a set contains Class object