View Javadoc

1   package org.kuali.rice.core.impl.cache;
2   
3   import org.springframework.cache.CacheManager;
4   
5   import java.util.List;
6   
7   /**
8    *
9    */
10  public interface CacheManagerRegistry {
11      /**
12       * Will return a list of registered cache managers.  Will not return null.
13       * @return a list of cache managers
14       */
15      List<CacheManager> getCacheManagers();
16  
17      /**
18       * Gets a cache manager for a given name.  Name cannot be null or blank.
19       *
20       * @param name the cache manager name
21       * @return the CacheManager
22       * @throws IllegalArgumentException if the name is null or blank
23       */
24      CacheManager getCacheManager(String name);
25  
26      /**
27       * Gets the name of a cache manager.  The cm cannot be null.  Will not return null or blank string.
28       *
29       * @param cm the cache manager
30       * @return the name
31       * @throws IllegalArgumentException if the cm is null
32       */
33      String getCacheManagerName(CacheManager cm);
34  }