Class DefaultContextCache

java.lang.Object
org.springframework.test.context.cache.DefaultContextCache
All Implemented Interfaces:
ContextCache

public class DefaultContextCache extends Object implements 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".

Since:
2.5
Author:
Sam Brannen, Juergen Hoeller
See Also: