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, waitgetCustomizers, requireRestartprotected 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()
GremlinPlugingetName in interface GremlinPluginpublic 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 CustomizersCopyright © 2013–2018 Apache Software Foundation. All rights reserved.