Package org.camunda.templateengines
Class FreeMarkerCompiledScript
java.lang.Object
javax.script.CompiledScript
org.camunda.templateengines.FreeMarkerCompiledScript
Wraps a
Freemaker template
as a CompiledScript
to
cache the used template.- Author:
- Sebastian Menski
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ScriptEngine
protected final freemarker.template.Template
-
Constructor Summary
ConstructorDescriptionFreeMarkerCompiledScript
(ScriptEngine scriptEngine, Reader script, freemarker.template.Configuration configuration) FreeMarkerCompiledScript
(ScriptEngine scriptEngine, String script, freemarker.template.Configuration configuration) FreeMarkerCompiledScript
(ScriptEngine scriptEngine, String filename, Reader script, freemarker.template.Configuration configuration) FreeMarkerCompiledScript
(ScriptEngine scriptEngine, String filename, String script, freemarker.template.Configuration configuration) -
Method Summary
Methods inherited from class javax.script.CompiledScript
eval, eval
-
Field Details
-
scriptEngine
-
template
protected final freemarker.template.Template template
-
-
Constructor Details
-
FreeMarkerCompiledScript
public FreeMarkerCompiledScript(ScriptEngine scriptEngine, String script, freemarker.template.Configuration configuration) throws ScriptException - Throws:
ScriptException
-
FreeMarkerCompiledScript
public FreeMarkerCompiledScript(ScriptEngine scriptEngine, Reader script, freemarker.template.Configuration configuration) throws ScriptException - Throws:
ScriptException
-
FreeMarkerCompiledScript
public FreeMarkerCompiledScript(ScriptEngine scriptEngine, String filename, String script, freemarker.template.Configuration configuration) throws ScriptException - Throws:
ScriptException
-
FreeMarkerCompiledScript
public FreeMarkerCompiledScript(ScriptEngine scriptEngine, String filename, Reader script, freemarker.template.Configuration configuration) throws ScriptException - Throws:
ScriptException
-
-
Method Details
-
eval
- Specified by:
eval
in classCompiledScript
- Throws:
ScriptException
-
getEngine
- Specified by:
getEngine
in classCompiledScript
-