public abstract class FreemarkerRenderingEngine extends Object implements RenderingEngine
Modifier and Type | Field and Description |
---|---|
protected freemarker.template.Configuration |
cfg |
Constructor and Description |
---|
FreemarkerRenderingEngine() |
Modifier and Type | Method and Description |
---|---|
freemarker.template.Configuration |
createConfiguration()
TODO : It works like this but this default implementation should return just a
new Configuration()
There should be a class that extends this class and overrides this but that brokes it right now. |
protected abstract FreemarkerRenderingJob |
createJob(RenderingContext ctx) |
RenderingResult |
process(RenderingContext ctx)
Processes the given context and return a rendering result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormatName
protected freemarker.template.Configuration cfg
public FreemarkerRenderingEngine()
public freemarker.template.Configuration createConfiguration()
new Configuration()
There should be a class that extends this class and overrides this but that brokes it right now. TODO: write a
clear TODOprotected abstract FreemarkerRenderingJob createJob(RenderingContext ctx)
public RenderingResult process(RenderingContext ctx) throws RenderingException
RenderingEngine
The processing must never return null. If some error occurs it must throw an exception.
process
in interface RenderingEngine
ctx
- the context to processRenderingException
Copyright © 2015 Nuxeo SA. All rights reserved.