public class GroovyEngineFactory
extends org.codehaus.groovy.jsr223.GroovyScriptEngineFactory
| Constructor and Description |
|---|
GroovyEngineFactory() |
| Modifier and Type | Method and Description |
|---|---|
ScriptEngine |
getScriptEngine()
Instantiates and returns an instance of
GroovyScriptEngineImpl passing in
a new GroovyClassLoader with an AST transformation customizer that will ensure
that interrupt checks are inserted into the compiled code (at the start of closures, loops, etc.). |
void |
setSandbox(org.kohsuke.groovy.sandbox.GroovyValueFilter sandbox)
Sets the Groovy value filter to use for sandboxing scripts.
|
public ScriptEngine getScriptEngine()
GroovyScriptEngineImpl passing in
a new GroovyClassLoader with an AST transformation customizer that will ensure
that interrupt checks are inserted into the compiled code (at the start of closures, loops, etc.).
Scripts run through engines provided by this function will be interruptable.getScriptEngine in interface ScriptEngineFactorygetScriptEngine in class org.codehaus.groovy.jsr223.GroovyScriptEngineFactorypublic void setSandbox(org.kohsuke.groovy.sandbox.GroovyValueFilter sandbox)
sandbox - the new sandbox to use.Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.