public class PluggableTemplareLoader extends Object implements freemarker.cache.TemplateLoader
TemplateLoader
implementation that deletgates work to several underlaying ClassTemplateLoader
.
Using the class allow to have buil-in templates that can be overwritten by the backend implementation.
Constructor and Description |
---|
PluggableTemplareLoader(freemarker.cache.ClassTemplateLoader defaultLoader) |
Modifier and Type | Method and Description |
---|---|
void |
closeTemplateSource(Object templateSource) |
Object |
findTemplateSource(String name) |
freemarker.cache.TemplateLoader |
getAdditionnalLoader() |
long |
getLastModified(Object templateSource) |
Reader |
getReader(Object templateSource,
String encoding) |
void |
setAdditionnalLoader(freemarker.cache.ClassTemplateLoader additionnalLoader) |
public PluggableTemplareLoader(freemarker.cache.ClassTemplateLoader defaultLoader)
public void closeTemplateSource(Object templateSource) throws IOException
closeTemplateSource
in interface freemarker.cache.TemplateLoader
IOException
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 freemarker.cache.TemplateLoader getAdditionnalLoader()
public void setAdditionnalLoader(freemarker.cache.ClassTemplateLoader additionnalLoader)
Copyright © 2015 Nuxeo SA. All rights reserved.