Class AbstractCacheFactory<K extends java.io.Serializable,​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>
    Abstract CacheFactory implementation containing common functionality such as cache configuration properties support.
    Author:
    Matt Ward
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getProperty​(java.lang.String cacheName, java.lang.String propName, java.lang.String defaultValue)  
      void setProperties​(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
    • Constructor Detail

      • AbstractCacheFactory

        public AbstractCacheFactory()
    • 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 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