public interface GremlinPlugin
Modifier and Type | Method and Description |
---|---|
default Optional<Customizer[]> |
getCustomizers()
Gets the list of all
Customizer implementations to assign to a new GremlinScriptEngine . |
Optional<Customizer[]> |
getCustomizers(String scriptEngineName)
Gets the list of
Customizer implementations to assign to a new GremlinScriptEngine . |
String |
getName()
The name of the module.
|
default boolean |
requireRestart()
Some modules may require a restart of the plugin host for the classloader to pick up the features.
|
String getName()
default boolean requireRestart()
Class.forName()
to dynamically instantiate classes from the
root classloader (e.g. JDBC drivers that instantiate via @{code DriverManager}).default Optional<Customizer[]> getCustomizers()
Customizer
implementations to assign to a new GremlinScriptEngine
. This is
the same as doing getCustomizers(null)
.Optional<Customizer[]> getCustomizers(String scriptEngineName)
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
.scriptEngineName
- The name of the ScriptEngine
or null to get all the available Customizers
Copyright © 2013–2017 Apache Software Foundation. All rights reserved.