Package org.camunda.templateengines
Class FreeMarkerScriptEngine
java.lang.Object
javax.script.AbstractScriptEngine
org.camunda.templateengines.FreeMarkerScriptEngine
- All Implemented Interfaces:
Compilable,ScriptEngine
JSR 223 compatible wrapper for the FreeMarker template engine.
- Author:
- Sebastian Menski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected freemarker.template.Configurationprotected ScriptEngineFactoryFields inherited from class javax.script.AbstractScriptEngine
contextFields inherited from interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneval(Reader script, ScriptContext context) eval(String script, ScriptContext context) protected StringgetFilename(ScriptContext context) voidMethods inherited from class javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
-
Field Details
-
scriptEngineFactory
-
configuration
protected freemarker.template.Configuration configuration
-
-
Constructor Details
-
FreeMarkerScriptEngine
public FreeMarkerScriptEngine() -
FreeMarkerScriptEngine
-
-
Method Details
-
eval
- Specified by:
evalin interfaceScriptEngine- Throws:
ScriptException
-
eval
- Specified by:
evalin interfaceScriptEngine- Throws:
ScriptException
-
createBindings
- Specified by:
createBindingsin interfaceScriptEngine
-
getFactory
- Specified by:
getFactoryin interfaceScriptEngine
-
initConfiguration
public void initConfiguration() -
getFilename
-
compile
- Specified by:
compilein interfaceCompilable- Throws:
ScriptException
-
compile
- Specified by:
compilein interfaceCompilable- Throws:
ScriptException
-