Class AbstractGremlinScriptEngineFactory
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.jsr223.AbstractGremlinScriptEngineFactory
-
- All Implemented Interfaces:
ScriptEngineFactory
,GremlinScriptEngineFactory
- Direct Known Subclasses:
GremlinGroovyScriptEngineFactory
,GremlinLangScriptEngineFactory
,MockGremlinScriptEngineFactory
public abstract class AbstractGremlinScriptEngineFactory extends Object implements GremlinScriptEngineFactory
A simple base implementation of theGremlinScriptEngineFactory
.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected GremlinScriptEngineManager
manager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEngineName()
String
getEngineVersion()
List<String>
getExtensions()
String
getLanguageName()
String
getLanguageVersion()
List<String>
getMimeTypes()
List<String>
getNames()
Object
getParameter(String key)
String
getProgram(String... statements)
Statements are concatenated together by a line feed.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.jsr223.GremlinScriptEngineFactory
getScriptEngine
-
Methods inherited from interface javax.script.ScriptEngineFactory
getMethodCallSyntax, getOutputStatement
-
-
-
-
Field Detail
-
manager
protected GremlinScriptEngineManager manager
-
-
Method Detail
-
setCustomizerManager
public void setCustomizerManager(GremlinScriptEngineManager manager)
Description copied from interface:GremlinScriptEngineFactory
The factory should take theCustomizer
implementations made available by the manager and supply them to theGremlinScriptEngine
implementation it creates.- Specified by:
setCustomizerManager
in interfaceGremlinScriptEngineFactory
-
getEngineName
public final String getEngineName()
- Specified by:
getEngineName
in interfaceScriptEngineFactory
-
getEngineVersion
public String getEngineVersion()
- Specified by:
getEngineVersion
in interfaceScriptEngineFactory
-
getExtensions
public List<String> getExtensions()
- Specified by:
getExtensions
in interfaceScriptEngineFactory
-
getLanguageName
public final String getLanguageName()
- Specified by:
getLanguageName
in interfaceScriptEngineFactory
-
getLanguageVersion
public String getLanguageVersion()
- Specified by:
getLanguageVersion
in interfaceScriptEngineFactory
-
getMimeTypes
public List<String> getMimeTypes()
- Specified by:
getMimeTypes
in interfaceScriptEngineFactory
-
getNames
public List<String> getNames()
- Specified by:
getNames
in interfaceScriptEngineFactory
-
getParameter
public Object getParameter(String key)
- Specified by:
getParameter
in interfaceScriptEngineFactory
-
getProgram
public String getProgram(String... statements)
Statements are concatenated together by a line feed.- Specified by:
getProgram
in interfaceScriptEngineFactory
-
-