Class BindingsGremlinPlugin

  • All Implemented Interfaces:

    public class BindingsGremlinPlugin
    extends AbstractGremlinPlugin
    A plugin that allows 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.

    Stephen Mallette (