Deprecate addCache

master
Stephane Nicoll 9 years ago
parent 1c3c88f81e
commit 30d457c622
  1. 2
      spring-context/src/main/java/org/springframework/cache/support/AbstractCacheManager.java

@ -131,7 +131,9 @@ public abstract class AbstractCacheManager implements CacheManager, Initializing
/** /**
* Dynamically register an additional Cache with this manager. * Dynamically register an additional Cache with this manager.
* @param cache the Cache to register * @param cache the Cache to register
* @deprecated as of Spring 4.3, in favor of {@link #getMissingCache(String)}
*/ */
@Deprecated
protected final void addCache(Cache cache) { protected final void addCache(Cache cache) {
String name = cache.getName(); String name = cache.getName();
synchronized (this.cacheMap) { synchronized (this.cacheMap) {

Loading…
Cancel
Save