Top Description Fields Constructors Methods
net.sf.ehcache.constructs.readthrough

public Class ReadThroughCacheFactory

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

CacheDecoratorFactory implementation for the ReadThroughCache cache decorator. the Properties arguments are used to configure ReadThroughCacheConfiguration instances, which are in turn used to create the cache decorator instances.
Author
cschanck

Field Summary

Inherited from net.sf.ehcache.constructs.CacheDecoratorFactory:
DASH

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Ehcache
createDecoratedEhcache(Ehcache
a reference to the owning cache
cache
,
Properties
implementation specific properties configured as delimiter separated name value pairs in ehcache.xml
properties
)

Implements abstract net.sf.ehcache.constructs.CacheDecoratorFactory.createDecoratedEhcache.

Creates a decorated Ehcache using the properties specified for configuring the decorator.
public Ehcache
createDefaultDecoratedEhcache(Ehcache
a reference to the owning cache
cache
,
Properties
implementation specific properties configured as delimiter separated name value pairs in ehcache.xml
properties
)

Implements abstract net.sf.ehcache.constructs.CacheDecoratorFactory.createDefaultDecoratedEhcache.

This method is called when the factory is specified for the defaultCache in the config.
Inherited from net.sf.ehcache.constructs.CacheDecoratorFactory:
generateDefaultDecoratedCacheName

Constructor Detail

ReadThroughCacheFactoryback to summary
public ReadThroughCacheFactory()

Method Detail

createDecoratedEhcacheback to summary
public Ehcache createDecoratedEhcache(Ehcache cache, Properties properties)

Implements abstract net.sf.ehcache.constructs.CacheDecoratorFactory.createDecoratedEhcache.

Doc from net.sf.ehcache.constructs.CacheDecoratorFactory.createDecoratedEhcache.

Creates a decorated Ehcache using the properties specified for configuring the decorator.

If the returned decorated cache has the same name as the underlying cache, then the original cache will be replaced by this new decorated cache in the CacheManager.

Parameters
cache:Ehcache

a reference to the owning cache

properties:Properties

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

Returns:Ehcache

a decorated Ehcache

Annotations
@Override
createDefaultDecoratedEhcacheback to summary
public Ehcache createDefaultDecoratedEhcache(Ehcache cache, Properties properties)

Implements abstract net.sf.ehcache.constructs.CacheDecoratorFactory.createDefaultDecoratedEhcache.

Doc from net.sf.ehcache.constructs.CacheDecoratorFactory.createDefaultDecoratedEhcache.

This method is called when the factory is specified for the defaultCache in the config. Create the decorated Ehcache using the properties specified.

If the returned decorated cache has the same name as the underlying cache, then the original cache will be replaced by this new decorated cache in the CacheManager.

Parameters
cache:Ehcache

a reference to the owning cache

properties:Properties

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

Returns:Ehcache

a decorated Ehcache

Annotations
@Override