Skip to content

Commit 392f51c

Browse files
committed
Merge branch '5.2.x'
2 parents 83df467 + 6acbc50 commit 392f51c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spring-context/src/main/java/org/springframework/cache/support/SimpleCacheManager.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,6 +24,11 @@
2424
/**
2525
* Simple cache manager working against a given collection of caches.
2626
* 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}.
2732
*
2833
* @author Costin Leau
2934
* @since 3.1
@@ -35,6 +40,7 @@ public class SimpleCacheManager extends AbstractCacheManager {
3540

3641
/**
3742
* Specify the collection of Cache instances to use for this CacheManager.
43+
* @see #initializeCaches()
3844
*/
3945
public void setCaches(Collection<? extends Cache> caches) {
4046
this.caches = caches;

0 commit comments

Comments
 (0)