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