public class FreeMarkerTemplateEngine extends Object implements TemplateEngine
Modifier and Type | Field and Description |
---|---|
protected freemarker.template.Configuration |
configuration
The main Configuration object of Freemarker.
|
protected static Logger |
logger
null logger
|
Constructor and Description |
---|
FreeMarkerTemplateEngine() |
Modifier and Type | Method and Description |
---|---|
void |
addMacroLibrary(String macroLibrary) |
String |
getEvaluatedExpression(String expression,
Map<String,Object> templateObjects) |
List<String> |
getMacroLibraries() |
void |
initialize(String namespace) |
void |
processTemplate(String templateFile,
Map<String,Object> templateObjects,
Writer output) |
void |
setMergeLocation(String mergeLocation) |
void |
shutdown() |
protected freemarker.template.Configuration configuration
public FreeMarkerTemplateEngine()
public void initialize(String namespace) throws Exception
initialize
in interface TemplateEngine
Exception
TemplateEngine.initialize(String)
public void processTemplate(String templateFile, Map<String,Object> templateObjects, Writer output) throws Exception
processTemplate
in interface TemplateEngine
Exception
TemplateEngine.processTemplate(String,
java.util.Map, java.io.Writer)
public void shutdown()
shutdown
in interface TemplateEngine
TemplateEngine.shutdown()
public List<String> getMacroLibraries()
getMacroLibraries
in interface TemplateEngine
TemplateEngine.getMacroLibraries()
public void addMacroLibrary(String macroLibrary)
addMacroLibrary
in interface TemplateEngine
TemplateEngine.addMacroLibrary(String)
public void setMergeLocation(String mergeLocation)
setMergeLocation
in interface TemplateEngine
TemplateEngine.setMergeLocation(String)
public String getEvaluatedExpression(String expression, Map<String,Object> templateObjects)
getEvaluatedExpression
in interface TemplateEngine
TemplateEngine.getEvaluatedExpression(String,
java.util.Map)
Copyright © 2003–2014 AndroMDA.org. All rights reserved.