org.dozer.cache
Interface CacheManager

All Known Implementing Classes:
DozerCacheManager

public interface CacheManager

Internal interface for managing caches. Only intended for internal use.

Author:
tierney.matt, dmitry.buzdin

Method Summary
 void addCache(String cacheName, int maximumSize)
           
 boolean cacheExists(String cacheName)
           
 void clearAllEntries()
          Clears all available caches.
 Cache getCache(String cacheName)
          Get Cache object by name.
 Collection<String> getCacheNames()
          Returns a Set of all Cache names
 Collection<Cache> getCaches()
           
 

Method Detail

clearAllEntries

void clearAllEntries()
Clears all available caches. Should not be used in production. Can be applied on "soft" application restart.


getCacheNames

Collection<String> getCacheNames()
Returns a Set of all Cache names

Returns:
Set of String objects representing Cache names.

getCaches

Collection<Cache> getCaches()

getCache

Cache getCache(String cacheName)
Get Cache object by name.

Parameters:
cacheName - unique cache name
Returns:
Cache object or will throw MappingException in case Cache is not registered.

addCache

void addCache(String cacheName,
              int maximumSize)

cacheExists

boolean cacheExists(String cacheName)


Copyright © 2005-2011 dozer. All Rights Reserved.