类 ImportCandidates

java.lang.Object
cn.taketoday.context.annotation.config.ImportCandidates
所有已实现的接口:
Iterable<String>

public final class ImportCandidates extends Object implements Iterable<String>
Contains @Configuration import candidates, usually auto-configurations. The load(Class, ClassLoader) method can be used to discover the import candidates.
从以下版本开始:
4.0 2022/3/5 22:46
作者:
Moritz Halbritter, Harry Yang
  • 方法详细资料

    • iterator

      @NonNull public Iterator<String> iterator()
      指定者:
      iterator 在接口中 Iterable<String>
    • getCandidates

      public ArrayList<String> getCandidates()
      Returns the list of loaded import candidates.
      返回:
      the list of import candidates
    • load

      public static ImportCandidates load(Class<?> annotation, @Nullable ClassLoader classLoader)
      Loads the names of import candidates from the classpath. The names of the import candidates are stored in files named META-INF/config/full-qualified-annotation-name.import on the classpath. Every line contains the full qualified name of the candidate class. Comments are supported using the # character.
      参数:
      annotation - annotation to load
      classLoader - class loader to use for loading
      返回:
      list of names of annotated classes