org.ztemplates.render.velocity
Class ZVelocityRenderer

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

public class ZVelocityRenderer
extends Object
implements ZIRenderer

See Also:
Serialized Form

Constructor Summary
ZVelocityRenderer()
           
 
Method Summary
static org.apache.velocity.app.VelocityEngine getVelocityEngine(ZIRenderApplicationContext applicationContext)
           
static void init(ZIRenderApplicationContext applicationContext)
           
 void init(ZIRenderApplicationContext applicationContext, ZITemplateNameRepository templateNameRepository)
           
 String render(Class clazz, Map<String,Object> values)
           
static void setVelocityEngine(ZIRenderApplicationContext applicationContext, org.apache.velocity.app.VelocityEngine cfg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZVelocityRenderer

public ZVelocityRenderer()
Method Detail

getVelocityEngine

public static org.apache.velocity.app.VelocityEngine getVelocityEngine(ZIRenderApplicationContext applicationContext)
                                                                throws Exception
Throws:
Exception

setVelocityEngine

public static void setVelocityEngine(ZIRenderApplicationContext applicationContext,
                                     org.apache.velocity.app.VelocityEngine 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

init

public static void init(ZIRenderApplicationContext applicationContext)
                 throws Exception
Throws:
Exception


Copyright © 2011. All Rights Reserved.