org.databene.script.freemarker
Class FreeMarkerScript

java.lang.Object
  extended by org.databene.script.AbstractScript
      extended by org.databene.script.freemarker.FreeMarkerScript
All Implemented Interfaces:
Script

public class FreeMarkerScript
extends AbstractScript

Script implementation that uses the FreeMarker engine.

Created: 31.01.2007 19:56:20

Author:
Volker Bergmann

Constructor Summary
FreeMarkerScript(java.lang.String filename)
           
FreeMarkerScript(freemarker.template.Template template)
           
 
Method Summary
static FreeMarkerScript createFromText(java.lang.String text)
           
 boolean equals(java.lang.Object obj)
           
 void execute(Context context, java.io.Writer out)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.databene.script.AbstractScript
evaluate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FreeMarkerScript

public FreeMarkerScript(java.lang.String filename)
                 throws java.io.IOException
Throws:
java.io.IOException

FreeMarkerScript

public FreeMarkerScript(freemarker.template.Template template)
Method Detail

createFromText

public static FreeMarkerScript createFromText(java.lang.String text)

execute

public void execute(Context context,
                    java.io.Writer out)
             throws java.io.IOException,
                    ScriptException
Specified by:
execute in interface Script
Overrides:
execute in class AbstractScript
Throws:
java.io.IOException
ScriptException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)


Copyright © 2010. All Rights Reserved.