Skip to content

Commit

Permalink
Indicate caches should be initialized in SimpleCacheManager
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll authored and xcl(徐程林) committed Aug 16, 2020
1 parent c6f63a5 commit 480fb26
Showing 1 changed file with 7 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -24,6 +24,11 @@
/**
* Simple cache manager working against a given collection of caches.
* Useful for testing or simple caching declarations.
* <p>
* When using this implementation directly, i.e. not via a regular
* bean registration, {@link #initializeCaches()} should be invoked
* to initialize its internal state once the
* {@linkplain #setCaches(Collection) caches have been provided}.
*
* @author Costin Leau
* @since 3.1
Expand All @@ -35,6 +40,7 @@ public class SimpleCacheManager extends AbstractCacheManager {

/**
* Specify the collection of Cache instances to use for this CacheManager.
* @see #initializeCaches()
*/
public void setCaches(Collection<? extends Cache> caches) {
this.caches = caches;
Expand Down

0 comments on commit 480fb26

Please sign in to comment.