public class ResourceTemplateLoader extends Object implements freemarker.cache.TemplateLoader
Modifier and Type | Field and Description |
---|---|
protected org.nuxeo.ecm.platform.rendering.fm.ResourceTemplateLoader.MyFileTemplateLoader |
fileLoader |
protected ResourceLocator |
locator |
protected org.nuxeo.ecm.platform.rendering.fm.ResourceTemplateLoader.MyURLTemplateLoader |
urlLoader |
Constructor and Description |
---|
ResourceTemplateLoader(ResourceLocator locator) |
Modifier and Type | Method and Description |
---|---|
void |
closeTemplateSource(Object templateSource) |
Object |
findTemplateSource(String name) |
long |
getLastModified(Object templateSource) |
ResourceLocator |
getLocator() |
Reader |
getReader(Object templateSource,
String encoding) |
void |
setLocator(ResourceLocator locator) |
protected ResourceLocator locator
protected final org.nuxeo.ecm.platform.rendering.fm.ResourceTemplateLoader.MyURLTemplateLoader urlLoader
protected final org.nuxeo.ecm.platform.rendering.fm.ResourceTemplateLoader.MyFileTemplateLoader fileLoader
public ResourceTemplateLoader(ResourceLocator locator)
public void setLocator(ResourceLocator locator)
public ResourceLocator getLocator()
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
Copyright © 2015 Nuxeo SA. All rights reserved.