public final class Neo4jGremlinPlugin extends AbstractGremlinPlugin
DOT_STAR, ENV_CONSOLE_IO, ENV_CONSOLE_SHELL, IMPORT_SPACE, IMPORT_STATIC_SPACE, io, requireConsoleEnvironment, shellENVIRONMENT| Constructor and Description |
|---|
Neo4jGremlinPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPluginTo(PluginAcceptor pluginAcceptor)
Called after the
AbstractGremlinPlugin.pluginTo(PluginAcceptor) method is executed which sets the AbstractGremlinPlugin.io and
AbstractGremlinPlugin.shell member variables. |
String |
getName()
The name of the plugin.
|
void |
pluginTo(PluginAcceptor pluginAcceptor)
Implementers will typically execute imports of classes within their project that they want available in the
console or they may use meta programming to introduce new extensions to the Gremlin.
|
boolean |
requireRestart()
Some plugins may require a restart of the plugin host for the classloader to pick up the features.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoteAcceptorpublic String getName()
GremlinPluginpublic void pluginTo(PluginAcceptor pluginAcceptor) throws PluginInitializationException, IllegalEnvironmentException
AbstractGremlinPluginAbstractGremlinPlugin.io and AbstractGremlinPlugin.shell member variables.pluginTo in interface GremlinPluginpluginTo in class AbstractGremlinPluginPluginInitializationException - if there is a failure in the plugin iniitalization processIllegalEnvironmentException - if AbstractGremlinPlugin.requireConsoleEnvironment is set to true and if either
the AbstractGremlinPlugin.io and AbstractGremlinPlugin.shell member variables are null.public void afterPluginTo(PluginAcceptor pluginAcceptor) throws IllegalEnvironmentException, PluginInitializationException
AbstractGremlinPluginAbstractGremlinPlugin.pluginTo(PluginAcceptor) method is executed which sets the AbstractGremlinPlugin.io and
AbstractGremlinPlugin.shell member variables.afterPluginTo in class AbstractGremlinPluginIllegalEnvironmentExceptionPluginInitializationExceptionpublic boolean requireRestart()
GremlinPluginClass.forName() to dynamically instantiate classes from the
root classloader (e.g. JDBC drivers that instantiate via @{code DriverManager}).Copyright © 2013–2016 Apache Software Foundation. All rights reserved.