Interface TemplateSource

All Known Implementing Classes:
AbstractTemplateSource, ForwardingTemplateSource, ReloadableTemplateSource, StringTemplateSource, URLTemplateSource

public interface TemplateSource
The template source. Implementation of TemplateSource must implement equals(Object) and hashCode() methods. This two methods are the core of the cache system.
Since:
0.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    content(Charset charset)
    The template content.
    The file's name.
    long
    The last modified date.
  • Method Details

    • content

      String content(Charset charset) throws IOException
      The template content.
      Parameters:
      charset - Charset to use.
      Returns:
      The template content.
      Throws:
      IOException - If the template can't read.
    • filename

      String filename()
      The file's name.
      Returns:
      The file's name.
    • lastModified

      long lastModified()
      The last modified date.
      Returns:
      The last modified date.