freemarker.ext.util
Class ModelCache
java.lang.Object
freemarker.ext.util.ModelCache
public abstract class ModelCache
extends java.lang.Object
Internally used by various wrapper implementations to implement model
caching.
$Id: ModelCache.java,v 1.9 2003/01/12 23:40:15 revusky Exp $
ModelCache
protected ModelCache()
clearCache
public void clearCache()
isCacheable
protected abstract boolean isCacheable(Object object)
setUseCache
public void setUseCache(boolean useCache)
Sets whether this wrapper caches model instances. Default is false.
When set to true, calling
getInstance(Object)
multiple times for the same object will return the same model.