org.apache.tinkerpop.gremlin.jsr223

## Interface BindingsCustomizer

- All Superinterfaces:
    Customizer
  All Known Implementing Classes:
    DefaultBindingsCustomizer, LazyBindingsCustomizer

      public interface BindingsCustomizer
      extends Customizer

  Provides a way to alter the bindings on a `GremlinScriptEngine`. Those implementing `GremlinScriptEngine` instances need to be concerned with accounting for this `Customizer`. It is handled automatically by the `DefaultGremlinScriptEngineManager`.
  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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.

- - ### Method Detail

    - #### getBindings

          Bindings getBindings()

      Gets the bindings to add to a `GremlinScriptEngine`.

    - #### getScope

          int getScope()

      Gets the scope to which the bindings apply. The scope is determined by the `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`.

Copyright © 2013–2021 Apache Software Foundation. All rights reserved.