File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
spring-context/src/main/java/org/springframework/cache/support Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2020 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.
24
24
/**
25
25
* Simple cache manager working against a given collection of caches.
26
26
* Useful for testing or simple caching declarations.
27
+ * <p>
28
+ * When using this implementation directly, i.e. not via a regular
29
+ * bean registration, {@link #initializeCaches()} should be invoked
30
+ * to initialize its internal state once the
31
+ * {@linkplain #setCaches(Collection) caches have been provided}.
27
32
*
28
33
* @author Costin Leau
29
34
* @since 3.1
@@ -35,6 +40,7 @@ public class SimpleCacheManager extends AbstractCacheManager {
35
40
36
41
/**
37
42
* Specify the collection of Cache instances to use for this CacheManager.
43
+ * @see #initializeCaches()
38
44
*/
39
45
public void setCaches (Collection <? extends Cache > caches ) {
40
46
this .caches = caches ;
You can’t perform that action at this time.
0 commit comments