org.ztemplates.render.freemarker
Class ZFreeMarkerRenderer

java.lang.Object
  extended by org.ztemplates.render.freemarker.ZFreeMarkerRenderer
All Implemented Interfaces:
Serializable, ZIRenderer

public class ZFreeMarkerRenderer
extends Object
implements ZIRenderer

See Also:
Serialized Form

Constructor Summary
ZFreeMarkerRenderer()
           
 
Method Summary
static freemarker.template.Configuration getConfiguration(ZIRenderApplicationContext applicationContext)
           
 void init(ZIRenderApplicationContext applicationContext, ZITemplateNameRepository templateNameRepository)
           
 String render(Class clazz, Map<String,Object> values)
           
static void setConfiguration(ZIRenderApplicationContext applicationContext, freemarker.template.Configuration cfg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZFreeMarkerRenderer

public ZFreeMarkerRenderer()
Method Detail

getConfiguration

public static freemarker.template.Configuration getConfiguration(ZIRenderApplicationContext applicationContext)
                                                          throws Exception
Throws:
Exception

setConfiguration

public static void setConfiguration(ZIRenderApplicationContext applicationContext,
                                    freemarker.template.Configuration cfg)
                             throws Exception
Throws:
Exception

init

public void init(ZIRenderApplicationContext applicationContext,
                 ZITemplateNameRepository templateNameRepository)
          throws Exception
Specified by:
init in interface ZIRenderer
Throws:
Exception

render

public String render(Class clazz,
                     Map<String,Object> values)
              throws Exception
Specified by:
render in interface ZIRenderer
Throws:
Exception


Copyright © 2011. All Rights Reserved.