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
Modifier and TypeFieldDescriptionprotected freemarker.template.Configuration
protected ScriptEngineFactory
Fields inherited from class javax.script.AbstractScriptEngine
context
Fields inherited from interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioneval
(Reader script, ScriptContext context) eval
(String script, ScriptContext context) protected String
getFilename
(ScriptContext context) void
Methods 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:
eval
in interfaceScriptEngine
- Throws:
ScriptException
-
eval
- Specified by:
eval
in interfaceScriptEngine
- Throws:
ScriptException
-
createBindings
- Specified by:
createBindings
in interfaceScriptEngine
-
getFactory
- Specified by:
getFactory
in interfaceScriptEngine
-
initConfiguration
public void initConfiguration() -
getFilename
-
compile
- Specified by:
compile
in interfaceCompilable
- Throws:
ScriptException
-
compile
- Specified by:
compile
in interfaceCompilable
- Throws:
ScriptException
-