freemarker.ext.util
Class ModelCache
java.lang.Object
freemarker.ext.util.ModelCache
public 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 $
clearCache
public void clearCache()
setUseCache
public void setUseCache(boolean useCache)
Sets whether this wrapper caches model instances. Default is false.
When set to true, calling
getInstance(Object,ModelFactory)
multiple times for the same object will return the same model.