Interface TemplateEngine
-
- All Known Implementing Classes:
AbstractTemplateEngine,VelocityTemplateEngine
public interface TemplateEngineAn interface of object able to parse and resolve a template
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamapplyTemplate(java.lang.Object context, java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> values)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.IOExceptionResolves specified template- Parameters:
context- an object that requires to resolve a templatetemplateId- identity of template to be resolvedvalues- template parameters- Returns:
- stream to resolved template
- Throws:
java.io.IOException
-
-