org.jtheque.core.managers.cache
Interface ICacheManager

All Superinterfaces:
ActivableManager, IManager
All Known Implementing Classes:
CacheManager

public interface ICacheManager
extends ActivableManager

A cache manager specification.

Author:
Baptiste Wicht

Method Summary
 void addCache(org.jtheque.core.managers.cache.CacheConfiguration cacheConfiguration)
          Add a cache.
 boolean cacheExists(java.lang.String name)
          Indicate if a cache exists with the specified name or not.
 net.sf.ehcache.Cache getCache(java.lang.String name)
          Return the cache with the specificied name.
 void removeCache(java.lang.String name)
          Remove the cache with the specified name.
 
Methods inherited from interface org.jtheque.core.managers.ActivableManager
isEnabled, setEnabled
 
Methods inherited from interface org.jtheque.core.managers.IManager
close, init, preInit
 

Method Detail

addCache

void addCache(org.jtheque.core.managers.cache.CacheConfiguration cacheConfiguration)
Add a cache.

Parameters:
cacheConfiguration - The configuration of the cache.

getCache

net.sf.ehcache.Cache getCache(java.lang.String name)
Return the cache with the specificied name.

Parameters:
name - The name of the cache.
Returns:
The cache with the specified name.

cacheExists

boolean cacheExists(java.lang.String name)
Indicate if a cache exists with the specified name or not.

Parameters:
name - The name of the cache to search for.
Returns:
true if the cache exists else false.

removeCache

void removeCache(java.lang.String name)
Remove the cache with the specified name.

Parameters:
name - The name of the cache to remove.


Copyright © 2009 JTheque. All Rights Reserved.