インターフェースの使用
org.springframework.test.context.aot.AotContextLoader
AotContextLoader を使用するパッケージ
パッケージ
説明
Spring TestContext フレームワークのサポートクラス。
Web は、Spring TestContext フレームワークのクラスをサポートします。
org.springframework.test.context.support 内の AotContextLoader 使用
AotContextLoader を実装している org.springframework.test.context.support のクラス修飾子と型クラス説明classAbstractDelegatingSmartContextLoaderは、SmartContextLoaderSPI の実装の抽象基本クラスとして機能し、一連の候補 SmartContextLoaders(つまり、XML 構成ファイルまたは Groovy スクリプトをサポートするものと、アノテーション付きクラスをサポートするもの)に委譲して、特定のコンテキストローダーが適切かどうかを判断します。テストクラスの構成。classGenericApplicationContextをロードするAbstractContextLoaderの抽象、汎用拡張。classコンポーネントクラスから Bean 定義をロードするAbstractGenericContextLoaderの具象実装。classDelegatingSmartContextLoaderは、GenericXmlContextLoader(または Groovy がクラスパスに存在する場合はGenericGroovyXmlContextLoader)およびAnnotationConfigContextLoaderに委譲するAbstractDelegatingSmartContextLoaderの具象実装です。classGroovy スクリプトおよび XML 構成ファイルから Bean 定義を読み取るAbstractGenericContextLoaderの具体的な実装。classXML リソースから Bean 定義を読み取るAbstractGenericContextLoaderの具体的な実装。org.springframework.test.context.web 内の AotContextLoader 使用
AotContextLoader を実装している org.springframework.test.context.web のクラス修飾子と型クラス説明classGenericWebApplicationContextをロードするAbstractContextLoaderの抽象、汎用拡張。classアノテーション付きクラスから Bean 定義をロードするAbstractGenericWebContextLoaderの具体的な実装。classGroovy スクリプトおよび XML 構成ファイルから Bean 定義をロードするAbstractGenericWebContextLoaderの具体的な実装。classXML リソースから Bean 定義をロードするAbstractGenericWebContextLoaderの具体的な実装。classWebDelegatingSmartContextLoaderは、GenericXmlWebContextLoader(または Groovy がクラスパスに存在する場合はGenericGroovyXmlWebContextLoader)およびAnnotationConfigWebContextLoaderに委譲するAbstractDelegatingSmartContextLoaderの具象実装です。