ehcache

net.sf.ehcache.loader
Class CacheLoaderFactory

java.lang.Object
  extended by net.sf.ehcache.loader.CacheLoaderFactory

public abstract class CacheLoaderFactory
extends 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: CacheLoaderFactory.java 5594 2012-05-07 16:04:31Z cdennis $
Author:
Greg Luck

Constructor Summary
CacheLoaderFactory()
           
 
Method Summary
abstract  CacheLoader createCacheLoader(Ehcache cache, 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,
                                              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

ehcache

Copyright 2001-2015, Terracotta, Inc.