Return to www.inductionframework.org

com.acciente.induction.template
Class FreemarkerTemplatingEngine

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

public class FreemarkerTemplatingEngine
extends java.lang.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, java.lang.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, java.io.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,
                                  java.lang.ClassLoader oClassLoader,
                                  javax.servlet.ServletConfig oServletConfig)
                           throws java.io.IOException,
                                  java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Method Detail

process

public void process(Template oTemplate,
                    java.io.Writer oWriter)
             throws TemplatingEngineException,
                    java.io.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
java.io.IOException

getConfiguration

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

Returns:

Return to www.inductionframework.org

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