Package net.sf.ehcache.writer
Class CacheWriterFactory
- java.lang.Object
-
- net.sf.ehcache.writer.CacheWriterFactory
-
public abstract class CacheWriterFactory extends java.lang.ObjectAn 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$
- Author:
- Greg Luck, Geert Bevin
-
-
Constructor Summary
Constructors Constructor Description CacheWriterFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CacheWritercreateCacheWriter(Ehcache cache, java.util.Properties properties)Creates a CacheWriter using the Ehcache configuration mechanism at the time the associated cache is created.
-
-
-
Method Detail
-
createCacheWriter
public abstract CacheWriter createCacheWriter(Ehcache cache, java.util.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 cacheproperties- 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
-
-