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

    Modifier and Type
    Method
    Description
    Gets the bindings to add to a GremlinScriptEngine.
    int
    Gets the scope to which the bindings apply.
  • Method Details

    • 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.