ehcache

net.sf.ehcache.writer
Class CacheWriterFactory

java.lang.Object
  extended by net.sf.ehcache.writer.CacheWriterFactory

public abstract class CacheWriterFactory
extends Object

An abstract factory for creating cache writers. Implementers should provide their own concrete factory extending this factory.

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

Version:
$Id: CacheWriterFactory.java 5594 2012-05-07 16:04:31Z cdennis $
Author:
Greg Luck, Geert Bevin

Constructor Summary
CacheWriterFactory()
           
 
Method Summary
abstract  CacheWriter createCacheWriter(Ehcache cache, Properties properties)
          Creates a CacheWriter 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

CacheWriterFactory

public CacheWriterFactory()
Method Detail

createCacheWriter

public abstract CacheWriter createCacheWriter(Ehcache cache,
                                              Properties properties)
Creates a CacheWriter using the Ehcache configuration mechanism at the time the associated cache is created.

Parameters:
cache - a reference to the owning cache
properties - configuration properties that will be ignored by Ehcache, but may be useful for specifying the underlying resource. e.g. dataSourceName could be specified and then looked up in JNDI.
Returns:
a constructed CacheWriter

ehcache

Copyright 2001-2016, Terracotta, Inc.