Interface GremlinScriptEngineFactory
- All Superinterfaces:
ScriptEngineFactory
- All Known Implementing Classes:
AbstractGremlinScriptEngineFactory,GremlinLangScriptEngineFactory
Creates a
GremlinScriptEngine implementation and supplies to it any Customizer implementations to
it that are available on the GremlinScriptEngineManager.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newGremlinScriptEngineinstance.voidThe factory should take theCustomizerimplementations made available by the manager and supply them to theGremlinScriptEngineimplementation it creates.Methods inherited from interface javax.script.ScriptEngineFactory
getEngineName, getEngineVersion, getExtensions, getLanguageName, getLanguageVersion, getMethodCallSyntax, getMimeTypes, getNames, getOutputStatement, getParameter, getProgram
-
Method Details
-
getScriptEngine
GremlinScriptEngine getScriptEngine()Creates a newGremlinScriptEngineinstance. Unlike the JSR-223 implementation, the semantics for this interface expect a "new" instance to be created for each call to this method. Caching or pooling is something to be handled by aGremlinScriptEngineManager.- Specified by:
getScriptEnginein interfaceScriptEngineFactory
-
setCustomizerManager
The factory should take theCustomizerimplementations made available by the manager and supply them to theGremlinScriptEngineimplementation it creates.
-