Interface GremlinPlugin
- 
- All Known Implementing Classes:
- AbstractGremlinPlugin,- CoreGremlinPlugin,- ImportGremlinPlugin,- ScriptFileGremlinPlugin,- VariableResolverPlugin
 
 public interface GremlinPluginA plugin interface that is used by theGremlinScriptEngineManagerto configure specialCustomizerinstances that will alter the features of anyGremlinScriptEnginecreated by the manager itself.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<Customizer[]>getCustomizers()Gets the list of allCustomizerimplementations to assign to a newGremlinScriptEngine.Optional<Customizer[]>getCustomizers(String scriptEngineName)Gets the list ofCustomizerimplementations to assign to a newGremlinScriptEngine.StringgetName()The name of the module.default booleanrequireRestart()Some modules may require a restart of the plugin host for the classloader to pick up the features.
 
- 
- 
- 
Method Detail- 
getNameString getName() The name of the module. This name should be unique (use a namespaced approach) as naming clashes will prevent proper module operations. Modules developed by TinkerPop will be prefixed with "tinkerpop." For example, TinkerPop's implementation of Spark would be named "tinkerpop.spark". If Facebook were to do their own implementation the implementation might be called "facebook.spark".
 - 
requireRestartdefault boolean requireRestart() Some modules may require a restart of the plugin host for the classloader to pick up the features. This is typically true of modules that rely onClass.forName()to dynamically instantiate classes from the root classloader (e.g. JDBC drivers that instantiate via @{code DriverManager}).
 - 
getCustomizersdefault Optional<Customizer[]> getCustomizers() Gets the list of allCustomizerimplementations to assign to a newGremlinScriptEngine. This is the same as doinggetCustomizers(null).
 - 
getCustomizersOptional<Customizer[]> getCustomizers(String scriptEngineName) Gets the list ofCustomizerimplementations to assign to a newGremlinScriptEngine. The implementation should filter the returnedCustomizersaccording to the supplied name of the Gremlin-enabledScriptEngine. By providing a filter,GremlinModuledevelopers can have the ability to target specificScriptEngines.- Parameters:
- scriptEngineName- The name of the- ScriptEngineor null to get all the available- Customizers
 
 
- 
 
-