public class ClassPathRepoTemplateLoader extends Object implements freemarker.cache.TemplateLoader
The template name should be supplied either as a NodeRef String or a ClassPath path String.
Constructor and Description |
---|
ClassPathRepoTemplateLoader(org.alfresco.service.cmr.repository.NodeService nodeService,
ContentService contentService,
String encoding) |
Modifier and Type | Method and Description |
---|---|
void |
closeTemplateSource(Object templateSource) |
Object |
findTemplateSource(String name)
Return an object wrapping a source for a template
|
long |
getLastModified(Object templateSource) |
Reader |
getReader(Object templateSource,
String encoding) |
public ClassPathRepoTemplateLoader(org.alfresco.service.cmr.repository.NodeService nodeService, ContentService contentService, String encoding)
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 © 2005–2017 Alfresco Software. All rights reserved.