クラス 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
関連事項: