Class ResourceTemplateLoader
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.fm.ResourceTemplateLoader
-
- All Implemented Interfaces:
freemarker.cache.TemplateLoader
public class ResourceTemplateLoader extends Object implements freemarker.cache.TemplateLoader
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ResourceTemplateLoader(ResourceLocator locator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
locator
protected ResourceLocator locator
-
urlLoader
protected final org.nuxeo.ecm.platform.rendering.fm.ResourceTemplateLoader.MyURLTemplateLoader urlLoader
-
fileLoader
protected final org.nuxeo.ecm.platform.rendering.fm.ResourceTemplateLoader.MyFileTemplateLoader fileLoader
-
-
Constructor Detail
-
ResourceTemplateLoader
public ResourceTemplateLoader(ResourceLocator locator)
-
-
Method Detail
-
setLocator
public void setLocator(ResourceLocator locator)
-
getLocator
public ResourceLocator getLocator()
-
closeTemplateSource
public void closeTemplateSource(Object templateSource) throws IOException
- Specified by:
closeTemplateSource
in interfacefreemarker.cache.TemplateLoader
- Throws:
IOException
-
findTemplateSource
public Object findTemplateSource(String name) throws IOException
- Specified by:
findTemplateSource
in interfacefreemarker.cache.TemplateLoader
- Throws:
IOException
-
getLastModified
public long getLastModified(Object templateSource)
- Specified by:
getLastModified
in interfacefreemarker.cache.TemplateLoader
-
getReader
public Reader getReader(Object templateSource, String encoding) throws IOException
- Specified by:
getReader
in interfacefreemarker.cache.TemplateLoader
- Throws:
IOException
-
-