File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed
spring-context/src/main/java/org/springframework Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ public interface CacheManager {
33
33
34
34
/**
35
35
* Get the cache associated with the given name.
36
- * <p>Note that the cache may be created at runtime if the native provider
37
- * supports it.
36
+ * <p>Note that the cache may be lazily created at runtime if the
37
+ * native provider supports it.
38
38
* @param name the cache identifier (must not be {@code null})
39
- * @return the associated cache, or {@code null} if such a cache does not
40
- * exist or could be not created
39
+ * @return the associated cache, or {@code null} if such a cache
40
+ * does not exist or could be not created
41
41
*/
42
42
@ Nullable
43
43
Cache getCache (String name );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -174,15 +174,15 @@ protected Cache decorateCache(Cache cache) {
174
174
}
175
175
176
176
/**
177
- * Return a missing cache with the specified {@code name} or {@code null} if
178
- * such cache does not exist or could not be created on the fly .
179
- * <p>Some caches may be created at runtime if the native provider supports
180
- * it. If a lookup by name does not yield any result, a subclass gets a chance
181
- * to register such a cache at runtime. The returned cache will be automatically
182
- * added to this instance .
177
+ * Return a missing cache with the specified {@code name}, or {@code null} if
178
+ * such a cache does not exist or could not be created on demand .
179
+ * <p>Caches may be lazily created at runtime if the native provider supports it.
180
+ * If a lookup by name does not yield any result, an {@code AbstractCacheManager}
181
+ * subclass gets a chance to register such a cache at runtime. The returned cache
182
+ * will be automatically added to this cache manager .
183
183
* @param name the name of the cache to retrieve
184
- * @return the missing cache or {@code null} if no such cache exists or could be
185
- * created
184
+ * @return the missing cache, or {@code null} if no such cache exists or could be
185
+ * created on demand
186
186
* @since 4.1
187
187
* @see #getCache(String)
188
188
*/
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public interface MessageSource {
41
41
42
42
/**
43
43
* Try to resolve the message. Return default message if no message was found.
44
- * @param code the code to lookup up, e.g. 'calculator.noRateSet'.
44
+ * @param code the message code to look up, e.g. 'calculator.noRateSet'.
45
45
* MessageSource users are encouraged to base message names on qualified class
46
46
* or package names, avoiding potential conflicts and ensuring maximum clarity.
47
47
* @param args an array of arguments that will be filled in for params within
@@ -59,7 +59,7 @@ public interface MessageSource {
59
59
60
60
/**
61
61
* Try to resolve the message. Treat as an error if the message can't be found.
62
- * @param code the code to lookup up, e.g. 'calculator.noRateSet'.
62
+ * @param code the message code to look up, e.g. 'calculator.noRateSet'.
63
63
* MessageSource users are encouraged to base message names on qualified class
64
64
* or package names, avoiding potential conflicts and ensuring maximum clarity.
65
65
* @param args an array of arguments that will be filled in for params within
You can’t perform that action at this time.
0 commit comments