public final class CoreGremlinPlugin extends Object implements GremlinPlugin
ScriptEngine to be Gremlin-enabled. This GremlinPlugin is not enabled
for the ServiceLoader. It is designed to be instantiated manually and compliant GremlinScriptEngine
instances will automatically install it by default when created.| Modifier and Type | Method and Description |
|---|---|
Optional<Customizer[]> |
getCustomizers(String scriptEngineName)
Gets the list of
Customizer implementations to assign to a new GremlinScriptEngine. |
String |
getName()
The name of the module.
|
static CoreGremlinPlugin |
instance() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCustomizers, requireRestartpublic static CoreGremlinPlugin instance()
public Optional<Customizer[]> getCustomizers(String scriptEngineName)
GremlinPluginCustomizer implementations to assign to a new GremlinScriptEngine. The
implementation should filter the returned Customizers according to the supplied name of the
Gremlin-enabled ScriptEngine. By providing a filter, GremlinModule developers can have the
ability to target specific ScriptEngines.getCustomizers in interface GremlinPluginscriptEngineName - The name of the ScriptEngine or null to get all the available Customizerspublic String getName()
GremlinPlugingetName in interface GremlinPluginCopyright © 2013–2022 Apache Software Foundation. All rights reserved.