Interface BindingsCustomizer
- All Superinterfaces:
Customizer
- All Known Implementing Classes:
DefaultBindingsCustomizer,LazyBindingsCustomizer
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 TypeMethodDescriptionGets the bindings to add to aGremlinScriptEngine.intgetScope()Gets the scope to which the bindings apply.
-
Method Details
-
getBindings
Bindings getBindings()Gets the bindings to add to aGremlinScriptEngine. -
getScope
int getScope()Gets the scope to which the bindings apply. The scope is determined by theScriptContextvalues where "100" isEngineScope(bindings apply to the currentGremlinScriptEngine) and "200" isGlobalScope(bindings apply to the engines created by the currentGremlinScriptEngineManager.
-