Class FreemarkerTemplateEngine.LazyLoadingModel

  • All Implemented Interfaces:
    freemarker.template.TemplateHashModel, freemarker.template.TemplateModel
    Enclosing class:
    FreemarkerTemplateEngine

    public static class FreemarkerTemplateEngine.LazyLoadingModel
    extends java.lang.Object
    implements freemarker.template.TemplateHashModel
    A custom Freemarker model that avoids loading the whole documents into memory if not necessary.
    • Field Summary

      • Fields inherited from interface freemarker.template.TemplateModel

        NOTHING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      freemarker.template.TemplateModel get​(java.lang.String key)  
      boolean isEmpty()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public freemarker.template.TemplateModel get​(java.lang.String key)
                                              throws freemarker.template.TemplateModelException
        Specified by:
        get in interface freemarker.template.TemplateHashModel
        Throws:
        freemarker.template.TemplateModelException
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface freemarker.template.TemplateHashModel