Top Description Constructors Methods
net.sf.ehcache.loader

public abstract Class CacheLoaderFactory

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

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.

Author
Greg Luck
Version
$Id: CacheLoaderFactory.java 10789 2018-04-26 02:08:13Z adahanne $

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract CacheLoader

Returns:

a constructed CacheLoader
createCacheLoader
(Ehcache
a reference to the owning cache, this cache isn't yet initialized nor wired to a particular CacheManager
cache
,
Properties
implementation specific properties configured as delimiter separated name value pairs in ehcache.xml
properties
)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CacheLoaderFactoryback to summary
public CacheLoaderFactory()

Method Detail

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

a reference to the owning cache, this cache isn't yet initialized nor wired to a particular CacheManager

properties:Properties

implementation specific properties configured as delimiter separated name value pairs in ehcache.xml

Returns:CacheLoader

a constructed CacheLoader