com.acciente.induction.template
Class FreemarkerTemplatingEngine
java.lang.Object
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
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 |
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
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:
Copyright © 2008-2012 Acciente, LLC. All Rights Reserved.