com.atlassian.crowd.manager.cache
Class CacheManagerEhcache
java.lang.Object
com.atlassian.crowd.manager.cache.CacheManagerEhcache
- All Implemented Interfaces:
- CacheManager
public class CacheManagerEhcache
- extends Object
- implements CacheManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheManagerEhcache
public CacheManagerEhcache(net.sf.ehcache.CacheManager cacheManager)
configureCaches
protected void configureCaches()
configureCache
protected void configureCache(String cacheName)
- Creates a cache if it doesn't already exist - if the cache has been defined in the configuration xml, then it
will not be recreated.
- Parameters:
cacheName - Name of the cache to ensure exists
getCache
protected net.sf.ehcache.Cache getCache(String cacheName)
get
public Object get(String key)
throws CacheManagerException,
NotInCacheException
- Specified by:
get in interface CacheManager
- Throws:
CacheManagerException
NotInCacheException
put
public void put(String key,
Serializable obj)
throws CacheManagerException
- Specified by:
put in interface CacheManager
- Throws:
CacheManagerException
remove
public boolean remove(String key)
throws CacheManagerException
- Specified by:
remove in interface CacheManager
- Throws:
CacheManagerException
removeAll
public void removeAll()
throws CacheManagerException
- Specified by:
removeAll in interface CacheManager
- Throws:
CacheManagerException
getAllKeys
public List getAllKeys()
throws CacheManagerException
- Specified by:
getAllKeys in interface CacheManager
- Throws:
CacheManagerException
put
public void put(String cacheName,
Serializable key,
Serializable obj)
throws CacheManagerException
- Specified by:
put in interface CacheManager
- Throws:
CacheManagerException
get
public Object get(String cacheName,
Serializable key)
throws CacheManagerException,
NotInCacheException
- Specified by:
get in interface CacheManager
- Throws:
CacheManagerException
NotInCacheException
remove
public boolean remove(String cacheName,
Serializable key)
throws CacheManagerException
- Specified by:
remove in interface CacheManager
- Throws:
CacheManagerException
removeAll
public void removeAll(String cacheName)
throws CacheManagerException
- Specified by:
removeAll in interface CacheManager
- Throws:
CacheManagerException
getAllKeys
public List getAllKeys(String cacheName)
throws CacheManagerException
- Specified by:
getAllKeys in interface CacheManager
- Throws:
CacheManagerException
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Throws:
Exception
Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.