public class BindingsGremlinPlugin extends AbstractGremlinPlugin
Bindings
to be applied to a GremlinScriptEngine
. The bindings are controled by
their scope
which are determined by the ScriptContext
values where "100" is ENGINE_SCOPE
(bindings apply to the current GremlinScriptEngine
) and "200" is GLOBAL_SCOPE
(bindings apply to the
engines created by the current GremlinScriptEngineManager
.
Note that bindings are applied in the following order:
GremlinScriptEngine
is requested from the GremlinScriptEngineManager
BindingsGremlinPlugin
instances are added to the GremlinScriptEngineManager
ENGINE_SCOPE
bindings
will override GLOBAL_SCOPE
. Those bindings that are GLOBAL_SCOPE
and applied to a single
GremlinScriptEngine
via an BindingsGremlinPlugin.Builder.appliesTo
configuration will still appear present to all other
GremlinScriptEngine
created by the GremlinScriptEngineManager
that the plugin was bound to.
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
Constructor and Description |
---|
BindingsGremlinPlugin(Bindings bindings,
int scope) |
BindingsGremlinPlugin(Supplier<Bindings> bindingsSupplier,
int scope) |
Modifier and Type | Method and Description |
---|---|
static BindingsGremlinPlugin.Builder |
build() |
getCustomizers, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomizers, requireRestart
public BindingsGremlinPlugin(Bindings bindings, int scope)
public static BindingsGremlinPlugin.Builder build()
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.