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 Details

    • 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 Details

    • ResourceTemplateLoader

      public ResourceTemplateLoader(ResourceLocator locator)
  • Method Details

    • setLocator

      public void setLocator(ResourceLocator locator)
    • getLocator

      public ResourceLocator getLocator()
    • 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
    • getReader

      public Reader getReader(Object templateSource, String encoding) throws IOException
      Specified by:
      getReader in interface freemarker.cache.TemplateLoader
      Throws:
      IOException