Class AbstractGremlinPlugin
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.jsr223.AbstractGremlinPlugin
 
- 
- All Implemented Interfaces:
- GremlinPlugin
 - Direct Known Subclasses:
- BindingsGremlinPlugin,- CredentialGraphGremlinPlugin,- GremlinLangPlugin,- GremlinServerGremlinPlugin,- GroovyCompilerGremlinPlugin,- ImportGremlinPlugin,- ScriptFileGremlinPlugin,- SugarGremlinPlugin,- TinkerGraphGremlinPlugin,- VariableResolverPlugin
 
 public abstract class AbstractGremlinPlugin extends Object implements GremlinPlugin - Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Set<String>appliesToprotected Customizer[]customizersprotected StringmoduleName
 - 
Constructor SummaryConstructors Constructor Description AbstractGremlinPlugin(String moduleName, Set<String> appliesTo, Customizer... customizers)Creates a baseGremlinPluginthat will apply to specificGremlinScriptEngineinstances.AbstractGremlinPlugin(String moduleName, Customizer... customizers)Creates a baseGremlinPluginthat will apply to allGremlinScriptEngineinstances.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Customizer[]>getCustomizers(String scriptEngineName)Gets the list ofCustomizerimplementations to assign to a newGremlinScriptEngine.StringgetName()The name of the module.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.jsr223.GremlinPlugingetCustomizers, requireRestart
 
- 
 
- 
- 
- 
Field Detail- 
moduleNameprotected final String moduleName 
 - 
customizersprotected final Customizer[] customizers 
 
- 
 - 
Constructor Detail- 
AbstractGremlinPluginpublic AbstractGremlinPlugin(String moduleName, Customizer... customizers) Creates a baseGremlinPluginthat will apply to allGremlinScriptEngineinstances.
 - 
AbstractGremlinPluginpublic AbstractGremlinPlugin(String moduleName, Set<String> appliesTo, Customizer... customizers) Creates a baseGremlinPluginthat will apply to specificGremlinScriptEngineinstances.
 
- 
 - 
Method Detail- 
getNamepublic String getName() Description copied from interface:GremlinPluginThe 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".- Specified by:
- getNamein interface- GremlinPlugin
 
 - 
getCustomizerspublic Optional<Customizer[]> getCustomizers(String scriptEngineName) Description copied from interface:GremlinPluginGets 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.- Specified by:
- getCustomizersin interface- GremlinPlugin
- Parameters:
- scriptEngineName- The name of the- ScriptEngineor null to get all the available- Customizers
 
 
- 
 
-