/*
 * Copyright 2002-2014 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.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.cache;

import java.util.Collection;

import org.springframework.lang.Nullable;

/**
 * Spring's central cache manager SPI.
 * Allows for retrieving named {@link Cache} regions.
 *
 * @author Costin Leau
 * @since 3.1
 */
public interface CacheManager {

	/**
	 * Return the cache associated with the given name.
	 * @param name the cache identifier (must not be {@code null})
	 * @return the associated cache, or {@code null} if none found
	 */
	@Nullable
	Cache getCache(String name);

	/**
	 * Return a collection of the cache names known by this manager.
	 * @return the names of all caches known by the cache manager
	 */
	Collection<String> getCacheNames();

}

@@ -21,9 +21,9 @@
 -201
-4
+9
  the
@@ -770,17 +770,23 @@
  SPI.%0A *
- 
+%0A * %3Cp%3E
 Allows f
@@ -854,16 +854,39 @@
 in Leau%0A
+ * @author Sam Brannen%0A
  * @sinc
@@ -937,22 +937,19 @@
 /**%0A%09 * 
-R
+G
 et
-urn
  the cac
@@ -983,16 +983,109 @@
 n name.%0A
+%09 * %3Cp%3ENote that the cache may be created at runtime if the native provider%0A%09 * supports it.%0A
 %09 * @par
@@ -1197,17 +1197,62 @@
  if 
-none foun
+such a cache does not%0A%09 * exist or could be not create
 d%0A%09 
@@ -1309,14 +1309,11 @@
 %09 * 
-R
+G
 et
-urn
  a c

Document that CacheManager.getCache() may create a new Cache