freemarker.template.cache
Interface CachingStrategyFactory<T extends CachingStrategy>

All Known Implementing Classes:
LoadAdHocCachingStrategyFactory, LoadOnDemandCachingStrategyFactory, LoDWithRefreshCachingStrategyFactory, NullCachingStrategyFactory, PreloadCachingStrategyFactory

public interface CachingStrategyFactory<T extends CachingStrategy>

Interface for creating CachingStrategy implementations.

Since:
1.9
Version:
$Id: CachingStrategyFactory.java 1112 2013-04-12 02:59:25Z run2000 $
Author:
Nicholas Cull

Method Summary
 T create(StrategyParameters params)
          Create a caching strategy with the given parameters.
 

Method Detail

create

T create(StrategyParameters params)
Create a caching strategy with the given parameters.

Parameters:
params - the parameters with which to create the cache retriever
Returns:
a new caching strategy initialized with the given parameters