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.TemplateLoaderIOExceptionpublic long getLastModified(Object templateSource)
getLastModified in interface freemarker.cache.TemplateLoaderpublic Reader getReader(Object templateSource, String encoding) throws IOException
getReader in interface freemarker.cache.TemplateLoaderIOExceptionpublic void closeTemplateSource(Object templateSource) throws IOException
closeTemplateSource in interface freemarker.cache.TemplateLoaderIOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.