Interface TemplateEngine

  • All Known Implementing Classes:
    AbstractTemplateEngine, VelocityTemplateEngine

    @Deprecated(since="6.5",
                forRemoval=true)
    public interface TemplateEngine
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 6.5
    An interface of object able to parse and resolve a template
    See Also:
    TemplateEngine
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      java.io.InputStream applyTemplate​(java.lang.Object context, java.lang.String templateId, java.util.Map<java.lang.String,​java.lang.Object> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Resolves specified template
    • Method Detail

      • applyTemplate

        java.io.InputStream applyTemplate​(java.lang.Object context,
                                          java.lang.String templateId,
                                          java.util.Map<java.lang.String,​java.lang.Object> values)
                                   throws java.io.IOException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Resolves specified template
        Parameters:
        context - an object that requires to resolve a template
        templateId - identity of template to be resolved
        values - template parameters
        Returns:
        stream to resolved template
        Throws:
        java.io.IOException