public final class MustacheScriptEngineService extends AbstractComponent implements ScriptEngineService
Mustache object can then be re-used for subsequent executions.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
deprecationLogger, logger, settings| Constructor and Description |
|---|
MustacheScriptEngineService(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
compile(String template,
Map<String,String> params)
Compile a template string to (in this case) a Mustache object than can
later be re-used for execution to fill in missing parameter values.
|
ExecutableScript |
executable(CompiledScript compiledScript,
Map<String,Object> vars) |
String[] |
extensions() |
boolean |
sandboxed() |
SearchScript |
search(CompiledScript compiledScript,
SearchLookup lookup,
Map<String,Object> vars) |
String[] |
types() |
logDeprecatedSetting, logRemovedSetting, nodeNamepublic static final String NAME
public Object compile(String template, Map<String,String> params)
compile in interface ScriptEngineServicetemplate - a string representing the template to compile.public String[] types()
types in interface ScriptEngineServicepublic String[] extensions()
extensions in interface ScriptEngineServicepublic boolean sandboxed()
sandboxed in interface ScriptEngineServicepublic ExecutableScript executable(CompiledScript compiledScript, @Nullable Map<String,Object> vars)
executable in interface ScriptEngineServicepublic SearchScript search(CompiledScript compiledScript, SearchLookup lookup, @Nullable Map<String,Object> vars)
search in interface ScriptEngineServicepublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2009–2017. All rights reserved.