Class CacheServiceImpl
- java.lang.Object
-
- org.exoplatform.services.cache.impl.CacheServiceImpl
-
- All Implemented Interfaces:
CacheService
public class CacheServiceImpl extends Object implements CacheService
Created by The eXo Platform SAS. Author : Tuan Nguyen tuan08@users.sourceforge.net Sat, Sep 13, 2003 @ Time: 1:12:22 PM
-
-
Constructor Summary
Constructors Constructor Description CacheServiceImpl(org.exoplatform.container.xml.InitParams params)CacheServiceImpl(org.exoplatform.container.xml.InitParams params, ExoCacheFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExoCacheConfig(org.exoplatform.container.component.ComponentPlugin plugin)voidaddExoCacheConfig(ExoCacheConfigPlugin plugin)Adds a cache configuration plugin.Collection<ExoCache<? extends Serializable,?>>getAllCacheInstances()Returns a collection of all the cache instances.<K extends Serializable,V>
ExoCache<K,V>getCacheInstance(String region)Returns a specific cache instance.
-
-
-
Constructor Detail
-
CacheServiceImpl
public CacheServiceImpl(org.exoplatform.container.xml.InitParams params) throws Exception- Throws:
Exception
-
CacheServiceImpl
public CacheServiceImpl(org.exoplatform.container.xml.InitParams params, ExoCacheFactory factory) throws Exception- Throws:
Exception
-
-
Method Detail
-
addExoCacheConfig
public void addExoCacheConfig(org.exoplatform.container.component.ComponentPlugin plugin)
-
addExoCacheConfig
public void addExoCacheConfig(ExoCacheConfigPlugin plugin)
Description copied from interface:CacheServiceAdds a cache configuration plugin.- Specified by:
addExoCacheConfigin interfaceCacheService- Parameters:
plugin- the plugin
-
getCacheInstance
public <K extends Serializable,V> ExoCache<K,V> getCacheInstance(String region)
Description copied from interface:CacheServiceReturns a specific cache instance.- Specified by:
getCacheInstancein interfaceCacheService- Type Parameters:
K- the key typeV- the value type- Parameters:
region- the cache region- Returns:
- the cache
-
getAllCacheInstances
public Collection<ExoCache<? extends Serializable,?>> getAllCacheInstances()
Description copied from interface:CacheServiceReturns a collection of all the cache instances.- Specified by:
getAllCacheInstancesin interfaceCacheService- Returns:
- all the caches
-
-