|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.cache.internal.DefaultCacheManager
@Component @Singleton public class DefaultCacheManager
The default implementation of CacheManager. It uses ConfigurationManager to find the cache an local cache hints to use to lookup cache components.
| Constructor Summary | |
|---|---|
DefaultCacheManager()
|
|
| Method Summary | ||
|---|---|---|
|
createNewCache(CacheConfiguration config)
Find the cache implementation component to use and create a new cache. |
|
|
createNewCache(CacheConfiguration config,
java.lang.String cacheHint)
Lookup the cache component with provided hint and create a new cache. |
|
|
createNewLocalCache(CacheConfiguration config)
Find the local cache implementation component to use and create a new cache. |
|
CacheFactory |
getCacheFactory()
Lookup the cache creation component with provided hint return it. |
|
CacheFactory |
getCacheFactory(java.lang.String cacheHint)
Lookup the cache creation component with provided hint return it. |
|
CacheFactory |
getLocalCacheFactory()
Lookup the local cache creation component with provided hint return it. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCacheManager()
| Method Detail |
|---|
public CacheFactory getCacheFactory()
throws org.xwiki.component.manager.ComponentLookupException
getCacheFactory in interface CacheManagerorg.xwiki.component.manager.ComponentLookupException - error when searching for cache component.CacheManager.getCacheFactory()
public CacheFactory getLocalCacheFactory()
throws org.xwiki.component.manager.ComponentLookupException
getLocalCacheFactory in interface CacheManagerorg.xwiki.component.manager.ComponentLookupException - error when searching for cache component.CacheManager.getLocalCacheFactory()
public CacheFactory getCacheFactory(java.lang.String cacheHint)
throws org.xwiki.component.manager.ComponentLookupException
cacheHint - the role hint to lookup.
org.xwiki.component.manager.ComponentLookupException - error when searching for cache component.
public <T> Cache<T> createNewCache(CacheConfiguration config)
throws CacheException
createNewCache in interface CacheManagerT - the class of the data stored in the cache.config - the cache configuration.
Cache.
CacheException - error when creating the cache.CacheManager.createNewCache(org.xwiki.cache.config.CacheConfiguration)
public <T> Cache<T> createNewLocalCache(CacheConfiguration config)
throws CacheException
The new cache is based on a local storing implementation (to oppose to distributed cache) and is generally used for not big cache needing very quick access to datas.
createNewLocalCache in interface CacheManagerT - the class of the data stored in the cache.config - the cache configuration.
Cache.
CacheException - error when creating the cache.CacheManager.createNewLocalCache(org.xwiki.cache.config.CacheConfiguration)
public <T> Cache<T> createNewCache(CacheConfiguration config,
java.lang.String cacheHint)
throws CacheException
T - the class of the data stored in the cache.config - the cache configuration.cacheHint - the role hint to lookup.
Cache.
CacheException - error when creating the cache.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||