Browse Source

Deprecate addCache

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

2
spring-context/src/main/java/org/springframework/cache/support/AbstractCacheManager.java vendored

@ -131,7 +131,9 @@ public abstract class AbstractCacheManager implements CacheManager, Initializing @@ -131,7 +131,9 @@ public abstract class AbstractCacheManager implements CacheManager, Initializing
/**
* Dynamically register an additional Cache with this manager.
* @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) {
String name = cache.getName();
synchronized (this.cacheMap) {

Loading…
Cancel
Save