org.kuali.rice.core.impl.cache
Class CacheManagerRegistryImpl

java.lang.Object
  extended by org.kuali.rice.core.impl.cache.CacheManagerRegistryImpl
All Implemented Interfaces:
CacheManagerRegistry

public final class CacheManagerRegistryImpl
extends Object
implements CacheManagerRegistry

A simple class that holds a global registry to the cache managers.


Constructor Summary
CacheManagerRegistryImpl()
           
 
Method Summary
 org.springframework.cache.CacheManager getCacheManager(String name)
          Gets a cache manager for a given name.
 org.springframework.cache.CacheManager getCacheManagerByCacheName(String cacheName)
          Gets a cache manager for a given cache name.
 String getCacheManagerName(org.springframework.cache.CacheManager cm)
          Gets the name of a cache manager.
 List<org.springframework.cache.CacheManager> getCacheManagers()
          Will return a list of registered cache managers.
 void setCacheManager(org.springframework.cache.CacheManager c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheManagerRegistryImpl

public CacheManagerRegistryImpl()
Method Detail

setCacheManager

public void setCacheManager(org.springframework.cache.CacheManager c)

getCacheManagers

public List<org.springframework.cache.CacheManager> getCacheManagers()
Description copied from interface: CacheManagerRegistry
Will return a list of registered cache managers. Will not return null.

Specified by:
getCacheManagers in interface CacheManagerRegistry
Returns:
a list of cache managers

getCacheManager

public org.springframework.cache.CacheManager getCacheManager(String name)
Description copied from interface: CacheManagerRegistry
Gets a cache manager for a given name. Name cannot be null or blank.

Specified by:
getCacheManager in interface CacheManagerRegistry
Parameters:
name - the cache manager name
Returns:
the CacheManager

getCacheManagerName

public String getCacheManagerName(org.springframework.cache.CacheManager cm)
Description copied from interface: CacheManagerRegistry
Gets the name of a cache manager. The cm cannot be null. Will not return null or blank string.

Specified by:
getCacheManagerName in interface CacheManagerRegistry
Parameters:
cm - the cache manager
Returns:
the name

getCacheManagerByCacheName

public org.springframework.cache.CacheManager getCacheManagerByCacheName(String cacheName)
Description copied from interface: CacheManagerRegistry
Gets a cache manager for a given cache name. Name cannot be null or blank.

Specified by:
getCacheManagerByCacheName in interface CacheManagerRegistry
Parameters:
cacheName - the name of a Cache in a CacheManager.
Returns:
the CacheManager


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.