Interface GremlinScriptEngineFactory
-
- All Superinterfaces:
ScriptEngineFactory
- All Known Implementing Classes:
AbstractGremlinScriptEngineFactory
,GremlinGroovyScriptEngineFactory
,GremlinLangScriptEngineFactory
,MockGremlinScriptEngineFactory
public interface GremlinScriptEngineFactory extends ScriptEngineFactory
Creates aGremlinScriptEngine
implementation and supplies to it anyCustomizer
implementations to it that are available on theGremlinScriptEngineManager
.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GremlinScriptEngine
getScriptEngine()
Creates a newGremlinScriptEngine
instance.void
setCustomizerManager(GremlinScriptEngineManager manager)
The factory should take theCustomizer
implementations made available by the manager and supply them to theGremlinScriptEngine
implementation it creates.-
Methods inherited from interface javax.script.ScriptEngineFactory
getEngineName, getEngineVersion, getExtensions, getLanguageName, getLanguageVersion, getMethodCallSyntax, getMimeTypes, getNames, getOutputStatement, getParameter, getProgram
-
-
-
-
Method Detail
-
getScriptEngine
GremlinScriptEngine getScriptEngine()
Creates a newGremlinScriptEngine
instance. 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:
getScriptEngine
in interfaceScriptEngineFactory
-
setCustomizerManager
void setCustomizerManager(GremlinScriptEngineManager manager)
The factory should take theCustomizer
implementations made available by the manager and supply them to theGremlinScriptEngine
implementation it creates.
-
-