net.sf.ehcache.jcache
Class CacheLoaderFactory

java.lang.Object
  extended by net.sf.ehcache.jcache.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.

This enables plugins to be written.

Note that JCache also allows the CacheLoader to be set after creation programmatically.

Version:
$Id: CacheLoaderFactory.java 512 2007-07-10 09:18:45Z gregluck $
Author:
Greg Luck

Constructor Summary
CacheLoaderFactory()
           
 
Method Summary
abstract  net.sf.jsr107cache.CacheLoader createCacheLoader(java.util.Map environment)
          Creates a CacheLoader.
 
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 net.sf.jsr107cache.CacheLoader createCacheLoader(java.util.Map environment)
Creates a CacheLoader. This method is called from JCacheFactory

Parameters:
environment - the same environment passed into JCacheFactory. This factory can extract any properties it needs from the environment.
Returns:
a constructed CacheLoader


Copyright © 2003-2011. All Rights Reserved.