Class CacheLoaderFactory


  • public abstract class CacheLoaderFactory
    extends java.lang.Object
    An abstract factory for creating cache loaders. Implementers should provide their own concrete factory extending this factory.

    Note that Ehcache API also allows the CacheLoader to be set programmatically.

    Version:
    $Id$
    Author:
    Greg Luck
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract CacheLoader createCacheLoader​(Ehcache cache, java.util.Properties properties)
      Creates a CacheLoader using the Ehcache configuration mechanism at the time the associated cache is created.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheLoaderFactory

        public CacheLoaderFactory()
    • Method Detail

      • createCacheLoader

        public abstract CacheLoader createCacheLoader​(Ehcache cache,
                                                      java.util.Properties properties)
        Creates a CacheLoader using the Ehcache configuration mechanism at the time the associated cache is created.
        Parameters:
        cache - a reference to the owning cache, this cache isn't yet initialized nor wired to a particular CacheManager
        properties - implementation specific properties configured as delimiter separated name value pairs in ehcache.xml
        Returns:
        a constructed CacheLoader