Class Settings.ScriptEngineSettings
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.server.Settings.ScriptEngineSettings
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,Object>
config
A Map of configuration settings for theScriptEngine
.List<String>
imports
A comma separated list of classes/packages to make available to theScriptEngine
.Map<String,Map<String,Object>>
plugins
A set of configurations forGremlinPlugin
instances to apply to thisGremlinScriptEngine
.List<String>
scripts
A comma separated list of script files to execute onScriptEngine
initialization.List<String>
staticImports
A comma separated list of "static" imports to make available to theScriptEngine
.
-
Constructor Summary
Constructors Constructor Description ScriptEngineSettings()
-
-
-
Field Detail
-
imports
public List<String> imports
A comma separated list of classes/packages to make available to theScriptEngine
.
-
staticImports
public List<String> staticImports
A comma separated list of "static" imports to make available to theScriptEngine
.
-
scripts
public List<String> scripts
A comma separated list of script files to execute onScriptEngine
initialization.Graph
andTraversalSource
instance references produced from scripts will be stored globally in Gremlin Server, therefore it is possible to use initialization scripts to addTraversalStrategy
instances or create entirely newGraph
instances all together. Instantiating aLifeCycleHook
in a script provides a way to execute scripts when Gremlin Server starts and stops.
-
config
public Map<String,Object> config
A Map of configuration settings for theScriptEngine
. These settings are dependent on theScriptEngine
implementation being used.
-
plugins
public Map<String,Map<String,Object>> plugins
A set of configurations forGremlinPlugin
instances to apply to thisGremlinScriptEngine
. Plugins will be applied in the order they are listed.
-
-