インターフェースの使用
org.springframework.boot.ApplicationContextFactory
ApplicationContextFactory を使用するパッケージ
パッケージ
説明
コア Spring Boot クラス。
SpringApplication
を構築するための流れるような「ビルダー」スタイルの API。 テスト用の Spring の
ApplicationContext
の構成に関連するクラスとアノテーション。org.springframework.boot 内の ApplicationContextFactory 使用
ApplicationContextFactory として宣言されている org.springframework.boot のフィールド修飾子と型フィールド説明static final ApplicationContextFactory
ApplicationContextFactory.DEFAULT
WebApplicationType
の適切なコンテキストを作成するデフォルトのApplicationContextFactory
実装。修飾子と型メソッド説明static ApplicationContextFactory
ApplicationContextFactory.of
(SupplierSE<ConfigurableApplicationContext> supplier) 指定されたSupplier
SE を呼び出すことによってコンテキストを作成するApplicationContextFactory
を作成します。static ApplicationContextFactory
ApplicationContextFactory.ofContextClass
(ClassSE<? extends ConfigurableApplicationContext> contextClass) プライマリコンストラクターを介して指定されたcontextClass
をインスタンス化することにより、コンテキストを作成するApplicationContextFactory
を作成します。型 ApplicationContextFactory のパラメーターを持つ org.springframework.boot のメソッド修飾子と型メソッド説明void
SpringApplication.setApplicationContextFactory
(ApplicationContextFactory applicationContextFactory) アプリケーションコンテキストを作成するために呼び出されるファクトリを設定します。org.springframework.boot.builder 内の ApplicationContextFactory 使用
型 ApplicationContextFactory のパラメーターを持つ org.springframework.boot.builder のメソッド修飾子と型メソッド説明SpringApplicationBuilder.contextFactory
(ApplicationContextFactory factory) アプリケーションコンテキストの作成に使用されるファクトリを明示的に設定します。org.springframework.boot.test.context 内の ApplicationContextFactory 使用
修飾子と型メソッド説明protected ApplicationContextFactory
SpringBootContextLoader.getApplicationContextFactory
(MergedContextConfiguration mergedConfig) テストに使用する必要があるApplicationContextFactory
を返します。