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() |
void |
scriptRemoved(CompiledScript script)
Handler method called when a script is removed from the Guava cache.
|
SearchScript |
search(CompiledScript compiledScript,
SearchLookup lookup,
Map<String,Object> vars) |
String[] |
types() |
logDeprecatedSetting, logRemovedSetting, nodeName
public static final String NAME
public Object compile(String template, Map<String,String> params)
compile
in interface ScriptEngineService
template
- a string representing the template to compile.public String[] types()
types
in interface ScriptEngineService
public String[] extensions()
extensions
in interface ScriptEngineService
public boolean sandboxed()
sandboxed
in interface ScriptEngineService
public ExecutableScript executable(CompiledScript compiledScript, @Nullable Map<String,Object> vars)
executable
in interface ScriptEngineService
public SearchScript search(CompiledScript compiledScript, SearchLookup lookup, @Nullable Map<String,Object> vars)
search
in interface ScriptEngineService
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void scriptRemoved(CompiledScript script)
ScriptEngineService
scriptRemoved
in interface ScriptEngineService
Copyright © 2009–2016. All rights reserved.