Interface BindingsCustomizer
-
- All Superinterfaces:
Customizer
- All Known Implementing Classes:
DefaultBindingsCustomizer
,LazyBindingsCustomizer
public interface BindingsCustomizer extends Customizer
Provides a way to alter the bindings on aGremlinScriptEngine
. Those implementingGremlinScriptEngine
instances need to be concerned with accounting for thisCustomizer
. It is handled automatically by theDefaultGremlinScriptEngineManager
.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Bindings
getBindings()
Gets the bindings to add to aGremlinScriptEngine
.int
getScope()
Gets the scope to which the bindings apply.
-
-
-
Method Detail
-
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 theScriptContext
values where "100" isEngineScope
(bindings apply to the currentGremlinScriptEngine
) and "200" isGlobalScope
(bindings apply to the engines created by the currentGremlinScriptEngineManager
.
-
-