public class LazyBindingsCustomizer extends Object implements BindingsCustomizer
GremlinScriptEngine
in the
ScriptContext.GLOBAL_SCOPE
.Constructor and Description |
---|
LazyBindingsCustomizer(Supplier<Bindings> bindingsSupplier)
Creates a new object with
ScriptContext.GLOBAL_SCOPE . |
Modifier and Type | Method and Description |
---|---|
Bindings |
getBindings()
Gets the bindings to add to a
GremlinScriptEngine . |
int |
getScope()
Gets the scope to which the bindings apply.
|
public Bindings getBindings()
BindingsCustomizer
GremlinScriptEngine
.getBindings
in interface BindingsCustomizer
public int getScope()
BindingsCustomizer
ScriptContext
values where
"100" is EngineScope
(bindings apply to the current GremlinScriptEngine
) and "200" is
GlobalScope
(bindings apply to the engines created by the current GremlinScriptEngineManager
.getScope
in interface BindingsCustomizer
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.