Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.rendering.template
Class FreemarkerRenderingEngine

java.lang.Object
  extended by org.nuxeo.ecm.platform.rendering.template.FreemarkerRenderingEngine
All Implemented Interfaces:
RenderingEngine
Direct Known Subclasses:
DocumentRenderingEngine

public abstract class FreemarkerRenderingEngine
extends Object
implements RenderingEngine

Base class for RenderingEngine implementation that will work with freemarker.

Author:
Dragos Mihalache

Constructor Summary
FreemarkerRenderingEngine()
           
 
Method Summary
 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.
 RenderingResult process(RenderingContext ctx)
          Processes the given context and return a rendering result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.platform.rendering.RenderingEngine
getFormatName
 

Constructor Detail

FreemarkerRenderingEngine

public FreemarkerRenderingEngine()
Method Detail

createConfiguration

public freemarker.template.Configuration createConfiguration()
                                                      throws Exception
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. TODO: write a clear TODO

Throws:
Exception

process

public RenderingResult process(RenderingContext ctx)
                        throws RenderingException
Description copied from interface: RenderingEngine
Processes the given context and return a rendering result.

The processing must never return null. If some error occurs it must throw an exception.

Specified by:
process in interface RenderingEngine
Parameters:
ctx - the context to process
Throws:
RenderingException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.