Class ResourceBasedTemplateLoader

java.lang.Object
com.flowable.serviceregistry.engine.template.ResourceBasedTemplateLoader
All Implemented Interfaces:
freemarker.cache.TemplateLoader

public class ResourceBasedTemplateLoader extends Object implements freemarker.cache.TemplateLoader
  • Field Details

  • Constructor Details

    • ResourceBasedTemplateLoader

      public ResourceBasedTemplateLoader(ResourceHelper resourceHelper)
  • Method Details

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

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