public class ResourceTemplateLoader extends Object implements freemarker.cache.TemplateLoader
TemplateLoader
which loads templates using the ResourceOrigin
API.Constructor and Description |
---|
ResourceTemplateLoader(ResourceOrigin origin) |
Modifier and Type | Method and Description |
---|---|
void |
closeTemplateSource(Object templateSource) |
Object |
findTemplateSource(String name) |
long |
getLastModified(Object templateSource) |
Reader |
getReader(Object templateSource,
String encoding) |
@Inject public ResourceTemplateLoader(ResourceOrigin origin)
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
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.