public class MockGremlinScriptEngineFactory extends AbstractGremlinScriptEngineFactory
GremlinScriptEngineFactory
which can be used to help test plugin
implementations which don't have reference to a GremlinScriptEngine
as a dependency.Modifier and Type | Field and Description |
---|---|
static String |
ENGINE_NAME |
manager
Constructor and Description |
---|
MockGremlinScriptEngineFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getMethodCallSyntax(String obj,
String m,
String... args) |
String |
getOutputStatement(String toDisplay) |
GremlinScriptEngine |
getScriptEngine()
Creates a new
GremlinScriptEngine instance. |
getEngineName, getEngineVersion, getExtensions, getLanguageName, getLanguageVersion, getMimeTypes, getNames, getParameter, getProgram, setCustomizerManager
public static final String ENGINE_NAME
public GremlinScriptEngine getScriptEngine()
GremlinScriptEngineFactory
GremlinScriptEngine
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 a GremlinScriptEngineManager
.Copyright © 2013–2023 Apache Software Foundation. All rights reserved.