クラス AbstractGenericWebContextLoader

java.lang.ObjectSE
org.springframework.test.context.support.AbstractContextLoader
org.springframework.test.context.web.AbstractGenericWebContextLoader
実装されたすべてのインターフェース:
AotContextLoaderContextLoaderSmartContextLoader
既知の直属サブクラス
AnnotationConfigWebContextLoaderGenericXmlWebContextLoader

public abstract class AbstractGenericWebContextLoader extends AbstractContextLoader implements AotContextLoader
GenericWebApplicationContext をロードする AbstractContextLoader の抽象、汎用拡張。

具象サブクラスのインスタンスは SmartContextLoader SPI を介して呼び出され、コンテキストは loadContext(MergedContextConfiguration) に提供される MergedContextConfiguration からロードされます。このような場合、SmartContextLoader は、場所からコンテキストをロードするか、アノテーション付きクラスからコンテキストをロードするかを決定します。 AbstractGenericWebContextLoader は、従来の ContextLoader SPI の  loadContext(String... locations) メソッドをサポートしていないことに注意してください。

具象サブクラスは、loadBeanDefinitions(org.springframework.web.context.support.GenericWebApplicationContext, org.springframework.test.context.web.WebMergedContextConfiguration) の適切な実装を提供する必要があります。

導入:
3.2
作成者:
Sam Brannen, Phillip Webb
関連事項: