public class TemplateSource
extends java.lang.Object
Constructor and Description |
---|
TemplateSource(TextSource textSource,
TemplateBuilder templateBuilder,
ObjectFormatter objFormatter,
TemplateInterceptor interceptor) |
Modifier and Type | Method and Description |
---|---|
boolean |
check() |
long |
getETag() |
long |
getLastModified() |
Section |
getTemplate(boolean checkForChanges)
Gets a thread-safe, up-to-date template instance:
If checkForChanges==true, checks the template's source to find out
if the template source has changed and rebuilds as necessary.
|
public TemplateSource(TextSource textSource, TemplateBuilder templateBuilder, ObjectFormatter objFormatter, TemplateInterceptor interceptor)
public Section getTemplate(boolean checkForChanges)
public boolean check()
public long getLastModified()
public long getETag()