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 Details

    • AbstractCacheFactory

      public AbstractCacheFactory()
  • Method Details

    • getProperty

      public String getProperty(String cacheName, String propName, String defaultValue)
    • setProperties

      public void setProperties(Properties properties)
      Provide properties to parameterize cache creation. Cache properties are prefixed with the cacheName supplied when invoking DefaultCacheFactory.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