public class BindingsGremlinPlugin extends AbstractGremlinPlugin
Bindings
to be applied to a GremlinScriptEngine
at the time of creation.
Bindings
defined with this plugin will always be assigned as ScriptContext.GLOBAL_SCOPE
and as such
will be visible to all GremlinScriptEngine
instances.
Note that bindings are applied in the order in which the BindingsGremlinPlugin
instances are added to the
GremlinScriptEngineManager
. Therefore if there are two plugins added and both include a variable called "x"
then the value of "x" will be the equal to the value provided by the second plugin that overrides the first.
This GremlinPlugin
is not enabled for the ServiceLoader
. It is designed to be instantiated manually.Modifier and Type | Class and Description |
---|---|
static class |
BindingsGremlinPlugin.Builder |
appliesTo, customizers, moduleName
Modifier and Type | Method and Description |
---|---|
static BindingsGremlinPlugin.Builder |
build()
Builds a set of static bindings.
|
getCustomizers, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomizers, requireRestart
public static BindingsGremlinPlugin.Builder build()
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.