public abstract class AbstractGremlinPlugin extends Object implements GremlinPlugin
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
appliesTo |
protected Customizer[] |
customizers |
protected String |
moduleName |
Constructor and Description |
---|
AbstractGremlinPlugin(String moduleName,
Customizer... customizers)
Creates a base
GremlinPlugin that will apply to all GremlinScriptEngine instances. |
AbstractGremlinPlugin(String moduleName,
Set<String> appliesTo,
Customizer... customizers)
Creates a base
GremlinPlugin that will apply to specific GremlinScriptEngine instances. |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomizers, requireRestart
protected final String moduleName
protected final Customizer[] customizers
public AbstractGremlinPlugin(String moduleName, Customizer... customizers)
GremlinPlugin
that will apply to all GremlinScriptEngine
instances.public AbstractGremlinPlugin(String moduleName, Set<String> appliesTo, Customizer... customizers)
GremlinPlugin
that will apply to specific GremlinScriptEngine
instances.public String getName()
GremlinPlugin
getName
in interface GremlinPlugin
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
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.