public class GroovyScriptEngineService extends AbstractComponent implements ScriptEngineService
| Modifier and Type | Class and Description |
|---|---|
static class |
GroovyScriptEngineService.GroovyScript |
| Modifier and Type | Field and Description |
|---|---|
static String |
GROOVY_SCRIPT_BLACKLIST_PATCH |
static String |
GROOVY_SCRIPT_SANDBOX_ENABLED |
static String |
NAME |
componentSettings, logger, settings| Constructor and Description |
|---|
GroovyScriptEngineService(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToBlacklist(String... additions)
Appends the additional blacklisted methods to the current blacklist,
returns true if the black list has changed
|
Set<String> |
blacklistAdditions() |
void |
close() |
Object |
compile(String script) |
ExecutableScript |
executable(Object compiledScript,
Map<String,Object> vars) |
Object |
execute(Object compiledScript,
Map<String,Object> vars) |
String[] |
extensions() |
void |
reloadConfig() |
boolean |
sandboxed() |
void |
scriptRemoved(CompiledScript script)
Handler method called when a script is removed from the Guava cache.
|
SearchScript |
search(Object compiledScript,
SearchLookup lookup,
Map<String,Object> vars) |
String[] |
types() |
Object |
unwrap(Object value) |
nodeNamepublic static final String NAME
public static String GROOVY_SCRIPT_SANDBOX_ENABLED
public static String GROOVY_SCRIPT_BLACKLIST_PATCH
public boolean addToBlacklist(String... additions)
public void reloadConfig()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void scriptRemoved(@Nullable CompiledScript script)
ScriptEngineServicescriptRemoved in interface ScriptEngineServicepublic String[] types()
types in interface ScriptEngineServicepublic String[] extensions()
extensions in interface ScriptEngineServicepublic boolean sandboxed()
sandboxed in interface ScriptEngineServicepublic Object compile(String script)
compile in interface ScriptEngineServicepublic ExecutableScript executable(Object compiledScript, Map<String,Object> vars)
executable in interface ScriptEngineServicepublic SearchScript search(Object compiledScript, SearchLookup lookup, @Nullable Map<String,Object> vars)
search in interface ScriptEngineServicepublic Object execute(Object compiledScript, Map<String,Object> vars)
execute in interface ScriptEngineServicepublic Object unwrap(Object value)
unwrap in interface ScriptEngineServiceCopyright © 2009–2016. All rights reserved.