Class DynamicTemplateLoader

  • All Implemented Interfaces:

    public class DynamicTemplateLoader
    extends java.lang.Object
    Based on CompositeTemplateLoader Provides a way to delegate template lookups to all registered plugins
    • Field Summary

      • Fields inherited from interface

    • Constructor Summary

      Constructor Description
      DynamicTemplateLoader​( loaders)
      Creates a new CompositeTemplateLoader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTemplateLoader​( loader)  
      java.nio.charset.Charset getCharset()  
      java.lang.String getPrefix()  
      java.lang.String getSuffix()  
      java.lang.Iterable<> getTemplateLoaders()
      Returns the delegates template loaders.
      void removeTemplateLoader​( loader)  
      java.lang.String resolve​(java.lang.String location)  
      void setCharset​(java.nio.charset.Charset charset)  
      void setPrefix​(java.lang.String prefix)  
      void setSuffix​(java.lang.String suffix) sourceAt​(java.lang.String location)  
      • Methods inherited from class java.lang.Object

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

      • DynamicTemplateLoader

        public DynamicTemplateLoader​( loaders)
        Creates a new CompositeTemplateLoader.
        loaders - The template loader chain. At least two loaders must be provided.
    • Method Detail

      • sourceAt

        public sourceAt​(java.lang.String location)
        Specified by:
        sourceAt in interface
      • resolve

        public java.lang.String resolve​(java.lang.String location)
        Specified by:
        resolve in interface
      • getPrefix

        public java.lang.String getPrefix()
        Specified by:
        getPrefix in interface
      • getSuffix

        public java.lang.String getSuffix()
        Specified by:
        getSuffix in interface
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
        Specified by:
        setPrefix in interface
      • setSuffix

        public void setSuffix​(java.lang.String suffix)
        Specified by:
        setSuffix in interface
      • setCharset

        public void setCharset​(java.nio.charset.Charset charset)
        Specified by:
        setCharset in interface
      • getCharset

        public java.nio.charset.Charset getCharset()
        Specified by:
        getCharset in interface
      • getTemplateLoaders

        public java.lang.Iterable<> getTemplateLoaders()
        Returns the delegates template loaders.
        The delegates template loaders.
      • addTemplateLoader

        public void addTemplateLoader​( loader)
      • removeTemplateLoader

        public void removeTemplateLoader​( loader)