|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.ext.util.ModelCache
public abstract class ModelCache
Internally used by various wrapper implementations to implement model caching.
Constructor Summary | |
---|---|
protected |
ModelCache()
|
Method Summary | |
---|---|
void |
clearCache()
|
protected abstract TemplateModel |
create(java.lang.Object object)
|
TemplateModel |
getInstance(java.lang.Object object)
|
protected abstract boolean |
isCacheable(java.lang.Object object)
|
void |
setUseCache(boolean useCache)
Sets whether this wrapper caches model instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ModelCache()
Method Detail |
---|
public void setUseCache(boolean useCache)
getInstance(Object)
multiple times for the same object will return the same model.
public TemplateModel getInstance(java.lang.Object object)
protected abstract TemplateModel create(java.lang.Object object)
protected abstract boolean isCacheable(java.lang.Object object)
public void clearCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |