Package org.alfresco.repo.cache
Class AbstractCacheFactory<K extends java.io.Serializable,V>
- java.lang.Object
-
- org.alfresco.repo.cache.AbstractCacheFactory<K,V>
-
- All Implemented Interfaces:
CacheFactory<K,V>
- Direct Known Subclasses:
DefaultCacheFactory
public abstract class AbstractCacheFactory<K extends java.io.Serializable,V> extends java.lang.Object implements CacheFactory<K,V>
AbstractCacheFactoryimplementation containing common functionality such as cache configuration properties support.- Author:
- Matt Ward
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProperty(java.lang.String cacheName, java.lang.String propName, java.lang.String defaultValue)voidsetProperties(java.util.Properties properties)Provide properties to parameterize cache creation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.cache.CacheFactory
createCache
-
-
-
-
Method Detail
-
getProperty
public java.lang.String getProperty(java.lang.String cacheName, java.lang.String propName, java.lang.String defaultValue)
-
setProperties
public void setProperties(java.util.Properties properties)
Provide properties to parameterize cache creation. Cache properties are prefixed with the cacheName supplied when invokingDefaultCacheFactory.createCache(String). For example, for a cache named cache.ticketsCache the property cache.ticketsCache.maxItems will determine the capacity of the cache.- Parameters:
properties- Properties
-
-