Class MockGremlinScriptEngineFactory
java.lang.Object
org.apache.tinkerpop.gremlin.jsr223.AbstractGremlinScriptEngineFactory
org.apache.tinkerpop.gremlin.jsr223.MockGremlinScriptEngineFactory
- All Implemented Interfaces:
ScriptEngineFactory,GremlinScriptEngineFactory
This is a "do nothing" implementation of the
GremlinScriptEngineFactory which can be used to help test plugin
implementations which don't have reference to a GremlinScriptEngine as a dependency.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Field Summary
FieldsFields inherited from class org.apache.tinkerpop.gremlin.jsr223.AbstractGremlinScriptEngineFactory
manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMethodCallSyntax(String obj, String m, String... args) getOutputStatement(String toDisplay) Creates a newGremlinScriptEngineinstance.Methods inherited from class org.apache.tinkerpop.gremlin.jsr223.AbstractGremlinScriptEngineFactory
getEngineName, getEngineVersion, getExtensions, getLanguageName, getLanguageVersion, getMimeTypes, getNames, getParameter, getProgram, setCustomizerManager
-
Field Details
-
ENGINE_NAME
- See Also:
-
-
Constructor Details
-
MockGremlinScriptEngineFactory
public MockGremlinScriptEngineFactory()
-
-
Method Details
-
getScriptEngine
Description copied from interface:GremlinScriptEngineFactoryCreates 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. -
getMethodCallSyntax
-
getOutputStatement
-