Package org.alfresco.repo.cache
Class AbstractCacheFactory<K extends 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 Serializable,V>
extends Object
implements CacheFactory<K,V>
Abstract
CacheFactory implementation containing common functionality such as cache configuration properties support.- Author:
- Matt Ward
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String cacheName, String propName, String defaultValue) voidsetProperties(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, waitMethods inherited from interface org.alfresco.repo.cache.CacheFactory
createCache
-
Constructor Details
-
AbstractCacheFactory
public AbstractCacheFactory()
-
-
Method Details
-
getProperty
-
setProperties
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
-