public abstract class AbstractDelegatingTemplateLoader extends Object implements freemarker.cache.TemplateLoader
Constructor and Description |
---|
AbstractDelegatingTemplateLoader() |
Modifier and Type | Method and Description |
---|---|
void |
closeTemplateSource(Object templateSource) |
Object |
findTemplateSource(String name) |
protected freemarker.cache.TemplateLoader |
getDelegate()
First attempts to initialize a new delegate if needed.
|
long |
getLastModified(Object templateSource) |
Reader |
getReader(Object templateSource,
String encoding) |
protected abstract freemarker.cache.TemplateLoader |
newDelegate()
Implementations should return null if it is too early to instantiate the delegate.
|
public Object findTemplateSource(String name) throws IOException
findTemplateSource
in interface freemarker.cache.TemplateLoader
IOException
public long getLastModified(Object templateSource)
getLastModified
in interface freemarker.cache.TemplateLoader
public Reader getReader(Object templateSource, String encoding) throws IOException
getReader
in interface freemarker.cache.TemplateLoader
IOException
public void closeTemplateSource(Object templateSource) throws IOException
closeTemplateSource
in interface freemarker.cache.TemplateLoader
IOException
protected freemarker.cache.TemplateLoader getDelegate()
protected abstract freemarker.cache.TemplateLoader newDelegate()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.