クラス AbstractGenericContextLoader

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

public abstract class AbstractGenericContextLoader extends AbstractContextLoader implements AotContextLoader
GenericApplicationContext をロードする AbstractContextLoader の抽象、汎用拡張。
  • 具象サブクラスのインスタンスが ContextLoader SPI を介して呼び出される場合、コンテキストは loadContext(String...) に提供された場所からロードされます。
  • 具象サブクラスのインスタンスが SmartContextLoader SPI を介して呼び出される場合、コンテキストは loadContext(MergedContextConfiguration) に提供された MergedContextConfiguration からロードされます。そのような場合、SmartContextLoader は、場所またはアノテーション付きクラスからコンテキストをロードするかどうかを決定します。

具象サブクラスは createBeanDefinitionReader() の適切な実装を提供する必要があり、loadBeanDefinitions() もオーバーライドする可能性があります。

導入:
2.5
作成者:
Sam Brannen, Juergen Hoeller, Phillip Webb
関連事項: