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 | Field and Description |
---|---|
static CoreGremlinPlugin |
INSTANCE
Deprecated.
As of 3.2.4, replaced by
instance() as this field will later become private. |
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, wait
getCustomizers, requireRestart
@Deprecated public static final CoreGremlinPlugin INSTANCE
instance()
as this field will later become private.public static CoreGremlinPlugin instance()
public Optional<Customizer[]> getCustomizers(String scriptEngineName)
GremlinPlugin
Customizer
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 GremlinPlugin
scriptEngineName
- The name of the ScriptEngine
or null to get all the available Customizers
public String getName()
GremlinPlugin
getName
in interface GremlinPlugin
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.