クラス ImportCandidates

java.lang.ObjectSE
org.springframework.boot.context.annotation.ImportCandidates
実装されたすべてのインターフェース:
IterableSE<StringSE>

public final class ImportCandidates extends ObjectSE implements IterableSE<StringSE>
@Configuration インポート候補、通常は自動構成が含まれています。load(Class, ClassLoader) メソッドを使用して、インポート候補を検出できます。
導入:
2.7.0
作成者:
Moritz Halbritter, Scott Frederick
  • メソッドの詳細

    • iterator

      public IteratorSE<StringSE> iterator()
      次で指定:
      インターフェース IterableSE<StringSE>iterator 
    • getCandidates

      public ListSE<StringSE> getCandidates()
      読み込まれたインポート候補のリストを返します。
      戻り値:
      インポート候補のリスト
    • load

      public static ImportCandidates load(ClassSE<?> annotation, ClassLoaderSE classLoader)
      クラスパスからインポート候補の名前をロードします。インポート候補の名前は、クラスパス上の META-INF/spring/full-qualified-annotation-name.imports という名前のファイルに保存されます。すべての行には、候補クラスの完全修飾名が含まれています。コメントは # 文字を使用してサポートされます。
      パラメーター:
      annotation - ロードするアノテーション
      classLoader - ロードに使用するクラスローダー
      戻り値:
      アノテーション付きクラスの名前のリスト