Top Description Constructors Methods
net.sf.ehcache.writer

public abstract Class CacheWriterFactory

extends Object
Class Inheritance
Imports
net.sf.ehcache.Ehcache, java.util.Properties

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.

Authors
Greg Luck, Geert Bevin
Version
$Id: CacheWriterFactory.java 10789 2018-04-26 02:08:13Z adahanne $

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract CacheWriter

Returns:

a constructed CacheWriter
createCacheWriter
(Ehcache
a reference to the owning cache
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.
properties
)

Creates a CacheWriter using the Ehcache configuration mechanism at the time the associated cache is created.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CacheWriterFactoryback to summary
public CacheWriterFactory()

Method Detail

createCacheWriterback to summary
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:Ehcache

a reference to the owning cache

properties: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:CacheWriter

a constructed CacheWriter