Class DefaultCacheAwareContextLoaderDelegate

java.lang.Object
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate
All Implemented Interfaces:
CacheAwareContextLoaderDelegate

public class DefaultCacheAwareContextLoaderDelegate extends Object implements CacheAwareContextLoaderDelegate
Default implementation of the CacheAwareContextLoaderDelegate strategy.

To use a static DefaultContextCache, invoke the DefaultCacheAwareContextLoaderDelegate() constructor; otherwise, invoke the DefaultCacheAwareContextLoaderDelegate(ContextCache) and provide a custom ContextCache implementation.

As of Spring Framework 6.0, this class loads ApplicationContextFailureProcessor implementations via the SpringFactoriesLoader mechanism and delegates to them in loadContext(MergedContextConfiguration) to process context load failures.

As of Spring Framework 6.1, this class supports the failure threshold feature described in CacheAwareContextLoaderDelegate.loadContext(org.springframework.test.context.MergedContextConfiguration), delegating to ContextCacheUtils.retrieveContextFailureThreshold() to obtain the threshold value to use.

Since:
4.1
Author:
Sam Brannen