org.apache.tiles.request.freemarker.autotag
Class FreemarkerAutotagRuntime

java.lang.Object
  extended by org.apache.tiles.request.freemarker.autotag.FreemarkerAutotagRuntime
All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel, org.apache.tiles.autotag.core.runtime.AutotagRuntime<Request>

public class FreemarkerAutotagRuntime
extends Object
implements org.apache.tiles.autotag.core.runtime.AutotagRuntime<Request>, freemarker.template.TemplateDirectiveModel

A Runtime for implementing a Freemarker Template Directive.


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
FreemarkerAutotagRuntime()
           
 
Method Summary
 org.apache.tiles.autotag.core.runtime.ModelBody createModelBody()
          
 Request createRequest()
          
 void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
          
<T> T
getParameter(String name, Class<T> type, T defaultValue)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreemarkerAutotagRuntime

public FreemarkerAutotagRuntime()
Method Detail

execute

public void execute(freemarker.core.Environment env,
                    Map params,
                    freemarker.template.TemplateModel[] loopVars,
                    freemarker.template.TemplateDirectiveBody body)

Specified by:
execute in interface freemarker.template.TemplateDirectiveModel

createRequest

public Request createRequest()

Specified by:
createRequest in interface org.apache.tiles.autotag.core.runtime.AutotagRuntime<Request>

createModelBody

public org.apache.tiles.autotag.core.runtime.ModelBody createModelBody()

Specified by:
createModelBody in interface org.apache.tiles.autotag.core.runtime.AutotagRuntime<Request>

getParameter

public <T> T getParameter(String name,
                          Class<T> type,
                          T defaultValue)

Specified by:
getParameter in interface org.apache.tiles.autotag.core.runtime.AutotagRuntime<Request>


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.