22
22
23
23
/**
24
24
* {@code ContextCache} defines the SPI for caching Spring
25
- * {@link ApplicationContext ApplicationContexts} within the <em>Spring
26
- * TestContext Framework</em>.
25
+ * {@link ApplicationContext ApplicationContexts} within the
26
+ * <em>Spring TestContext Framework</em>.
27
27
*
28
28
* <p>A {@code ContextCache} maintains a cache of {@code ApplicationContexts}
29
- * keyed by {@link MergedContextConfiguration} instances, potentially
30
- * configured with a {@linkplain ContextCacheUtils#retrieveMaxCacheSize
31
- * maximum size} and a custom eviction policy.
29
+ * keyed by {@link MergedContextConfiguration} instances, potentially configured
30
+ * with a {@linkplain ContextCacheUtils#retrieveMaxCacheSize maximum size} and
31
+ * a custom eviction policy.
32
32
*
33
33
* <h3>Rationale</h3>
34
34
* <p>Context caching can have significant performance benefits if context
@@ -50,25 +50,26 @@ public interface ContextCache {
50
50
* The name of the logging category used for reporting {@code ContextCache}
51
51
* statistics.
52
52
*/
53
- public static final String CONTEXT_CACHE_LOGGING_CATEGORY = "org.springframework.test.context.cache" ;
53
+ String CONTEXT_CACHE_LOGGING_CATEGORY = "org.springframework.test.context.cache" ;
54
54
55
55
/**
56
56
* The default maximum size of the context cache: {@value #DEFAULT_MAX_CONTEXT_CACHE_SIZE}.
57
+ * @since 4.3
57
58
* @see #MAX_CONTEXT_CACHE_SIZE_PROPERTY_NAME
58
59
*/
59
- public static final int DEFAULT_MAX_CONTEXT_CACHE_SIZE = 32 ;
60
+ int DEFAULT_MAX_CONTEXT_CACHE_SIZE = 32 ;
60
61
61
62
/**
62
63
* System property used to configure the maximum size of the {@link ContextCache}
63
- * as a positive integer.
64
- * <p>May alternatively be configured via
65
- * {@link org.springframework.core.SpringProperties SpringProperties}.
66
- * <p>Note that implementations of {@code ContextCache} are not required
67
- * to support a maximum cache size. Consult the documentation of the
64
+ * as a positive integer. May alternatively be configured via the
65
+ * {@link org.springframework.core.SpringProperties} mechanism.
66
+ * <p>Note that implementations of {@code ContextCache} are not required to
67
+ * actually support a maximum cache size. Consult the documentation of the
68
68
* corresponding implementation for details.
69
+ * @since 4.3
69
70
* @see #DEFAULT_MAX_CONTEXT_CACHE_SIZE
70
71
*/
71
- public static final String MAX_CONTEXT_CACHE_SIZE_PROPERTY_NAME = "spring.test.context.cache.maxSize" ;
72
+ String MAX_CONTEXT_CACHE_SIZE_PROPERTY_NAME = "spring.test.context.cache.maxSize" ;
72
73
73
74
74
75
/**
0 commit comments