com.acciente.induction.template
Class FreemarkerTemplatingEngine

java.lang.Object
  extended by com.acciente.induction.template.FreemarkerTemplatingEngine
All Implemented Interfaces:
TemplatingEngine

public class FreemarkerTemplatingEngine
extends Object
implements TemplatingEngine

An implementation of the Induction template engine interface that plugs in the Freemarker templating engine.

Author:
Adinath Raveendra Raj

Constructor Summary
FreemarkerTemplatingEngine(Config.Templating oConfig, ClassLoader oClassLoader, javax.servlet.ServletConfig oServletConfig)
           
 
Method Summary
 freemarker.template.Configuration getConfiguration()
          This method was added to allow classes to extend this class to modify the Freemarker configuration
 void process(Template oTemplate, Writer oWriter)
          This method is used to process a template via this instance of the templating engine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreemarkerTemplatingEngine

public FreemarkerTemplatingEngine(Config.Templating oConfig,
                                  ClassLoader oClassLoader,
                                  javax.servlet.ServletConfig oServletConfig)
                           throws IOException,
                                  ClassNotFoundException
Throws:
IOException
ClassNotFoundException
Method Detail

process

public void process(Template oTemplate,
                    Writer oWriter)
             throws TemplatingEngineException,
                    IOException
Description copied from interface: TemplatingEngine
This method is used to process a template via this instance of the templating engine

Specified by:
process in interface TemplatingEngine
Parameters:
oTemplate - the template object to process
Throws:
TemplatingEngineException
IOException

getConfiguration

public freemarker.template.Configuration getConfiguration()
This method was added to allow classes to extend this class to modify the Freemarker configuration

Returns:


Copyright © 2008-2013 Acciente, LLC. All Rights Reserved.