Class ResourceTemplateLoader

  • All Implemented Interfaces:
    freemarker.cache.TemplateLoader

    public class ResourceTemplateLoader
    extends Object
    implements freemarker.cache.TemplateLoader
    Author:
    Bogdan Stefanescu
    • Field Detail

      • 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

      • closeTemplateSource

        public void closeTemplateSource​(Object templateSource)
                                 throws IOException
        Specified by:
        closeTemplateSource in interface freemarker.cache.TemplateLoader
        Throws:
        IOException
      • findTemplateSource

        public Object findTemplateSource​(String name)
                                  throws IOException
        Specified by:
        findTemplateSource in interface freemarker.cache.TemplateLoader
        Throws:
        IOException
      • getLastModified

        public long getLastModified​(Object templateSource)
        Specified by:
        getLastModified in interface freemarker.cache.TemplateLoader