Home » freemarker-2.3.13 » freemarker.ext.util » [javadoc | source]
freemarker.ext.util
abstract public class: ModelCache [javadoc | source]
java.lang.Object
   freemarker.ext.util.ModelCache

Direct Known Subclasses:
    JythonModelCache, BeansModelCache

Internally used by various wrapper implementations to implement model caching.
Constructor:
 protected ModelCache() 
Method from freemarker.ext.util.ModelCache Summary:
clearCache,   create,   getInstance,   isCacheable,   setUseCache
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.ext.util.ModelCache Detail:
 public  void clearCache() 
 abstract protected TemplateModel create(Object object)
 public TemplateModel getInstance(Object object) 
 abstract protected boolean isCacheable(Object object)
 public synchronized  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.