br.com.ibnetwork.guara.view.impl.freemarker
Class FreemarkerTemplateEngine

java.lang.Object
  extended by br.com.ibnetwork.guara.view.impl.TemplateEngineSupport
      extended by br.com.ibnetwork.guara.view.impl.freemarker.FreemarkerTemplateEngine
All Implemented Interfaces:
TemplateEngine, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.service.Serviceable

public class FreemarkerTemplateEngine
extends TemplateEngineSupport
implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.service.Serviceable

Author:
leandro

Field Summary
 
Fields inherited from class br.com.ibnetwork.guara.view.impl.TemplateEngineSupport
configurationFile, encoding, extension, log, onErrorTemplate
 
Fields inherited from interface br.com.ibnetwork.guara.view.TemplateEngine
ROLE
 
Constructor Summary
FreemarkerTemplateEngine()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
           
 void merge(java.lang.String templateName, Context context, java.io.Writer w)
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 boolean templateExists(java.lang.String templateName)
           
 
Methods inherited from class br.com.ibnetwork.guara.view.impl.TemplateEngineSupport
createContext, getEncoding, getOnErrorTemplate, getTemplateExtension, toFileName, toTemplateName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreemarkerTemplateEngine

public FreemarkerTemplateEngine()
Method Detail

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class TemplateEngineSupport
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

merge

public void merge(java.lang.String templateName,
                  Context context,
                  java.io.Writer w)
           throws TemplateEngineException
Specified by:
merge in interface TemplateEngine
Throws:
TemplateEngineException

templateExists

public boolean templateExists(java.lang.String templateName)
                       throws TemplateEngineException
Specified by:
templateExists in interface TemplateEngine
Throws:
TemplateEngineException


Copyright © 1999-2006 InterBusiness Technologies. All Rights Reserved.