クラス DefaultCacheAwareContextLoaderDelegate

java.lang.ObjectSE
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate
実装されたすべてのインターフェース:
CacheAwareContextLoaderDelegate

public class DefaultCacheAwareContextLoaderDelegate extends ObjectSE implements CacheAwareContextLoaderDelegate
CacheAwareContextLoaderDelegate 戦略のデフォルト実装。

静的 DefaultContextCache を使用するには、DefaultCacheAwareContextLoaderDelegate() コンストラクターを呼び出します。それ以外の場合は、DefaultCacheAwareContextLoaderDelegate(ContextCache) を呼び出して、カスタム ContextCache 実装を提供します。

Spring Framework 6.0 の時点で、このクラスは SpringFactoriesLoader メカニズムを介して ApplicationContextFailureProcessor 実装をロードし、loadContext(MergedContextConfiguration) でそれらに委譲して、コンテキストのロードエラーを処理します。

Spring Framework 6.1 以降、このクラスは CacheAwareContextLoaderDelegate.loadContext(org.springframework.test.context.MergedContextConfiguration) で説明されている障害しきい値機能をサポートし、使用するしきい値の取得を ContextCacheUtils.retrieveContextFailureThreshold() に委譲します。

導入:
4.1
作成者:
Sam Brannen