spring-framework / org.springframework.test.context.cache

Package org.springframework.test.context.cache

Types

ContextCacheUtils

abstract class ContextCacheUtils

Collection of utilities for working with ContextCache.

DefaultCacheAwareContextLoaderDelegate

open class DefaultCacheAwareContextLoaderDelegate : CacheAwareContextLoaderDelegate

Default implementation of the CacheAwareContextLoaderDelegate interface.

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

DefaultContextCache

open class DefaultContextCache : ContextCache

Default implementation of the ContextCache API.

Uses a synchronized Map configured with a maximum size and a least recently used (LRU) eviction policy to cache ApplicationContext instances.

The maximum size may be supplied as a constructor argument or set via a system property or Spring property named spring.test.context.cache.maxSize.