public class NativeScriptEngineService extends AbstractComponent implements ScriptEngineService
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
deprecationLogger, logger, settings
Constructor and Description |
---|
NativeScriptEngineService(Settings settings,
Map<String,NativeScriptFactory> scripts) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Object |
compile(String script,
Map<String,String> params) |
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
@Inject public NativeScriptEngineService(Settings settings, Map<String,NativeScriptFactory> scripts)
public String[] types()
types
in interface ScriptEngineService
public String[] extensions()
extensions
in interface ScriptEngineService
public boolean sandboxed()
sandboxed
in interface ScriptEngineService
public Object compile(String script, Map<String,String> params)
compile
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.