Class NaiveFileTemplateLoader

  • All Implemented Interfaces:
    freemarker.cache.TemplateLoader

    public class NaiveFileTemplateLoader
    extends Object
    implements freemarker.cache.TemplateLoader
    A naive file template loader for FreeMarker that doesn't impose any security restrictions as the FreeMarker's own FileTemplateLoader does.
    Since:
    0.5.0
    Author:
    Lukas Krejci
    • Constructor Detail

      • NaiveFileTemplateLoader

        public NaiveFileTemplateLoader()
    • Method Detail

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

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