tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject tinkerpop git commit: Update the Neo4jGremlinPlugin source code in provider docs CTR
Date Fri, 11 Aug 2017 11:54:56 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/master 22276a8d2 -> 6f8a2a9e8


Update the Neo4jGremlinPlugin source code in provider docs CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/6f8a2a9e
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/6f8a2a9e
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/6f8a2a9e

Branch: refs/heads/master
Commit: 6f8a2a9e80c7bbadadbe23c8ab9848e89b535514
Parents: 22276a8
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Fri Aug 11 07:54:23 2017 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Fri Aug 11 07:54:42 2017 -0400

----------------------------------------------------------------------
 docs/src/dev/provider/index.asciidoc | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/6f8a2a9e/docs/src/dev/provider/index.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/dev/provider/index.asciidoc b/docs/src/dev/provider/index.asciidoc
index 222c72f..012e3ae 100644
--- a/docs/src/dev/provider/index.asciidoc
+++ b/docs/src/dev/provider/index.asciidoc
@@ -607,25 +607,7 @@ downloaded according and when required by the user. Neo4j's GremlinPlugin
is pro
 
 [source,java]
 ----
-public class Neo4jGremlinPlugin implements GremlinPlugin {
-
-    private static final String IMPORT = "import ";
-    private static final String DOT_STAR = ".*";
-
-    private static final Set<String> IMPORTS = new HashSet<String>() {{
-        add(IMPORT + Neo4jGraph.class.getPackage().getName() + DOT_STAR);
-    }};
-
-    @Override
-    public String getName() {
-        return "neo4j";
-    }
-
-    @Override
-    public void pluginTo(final PluginAcceptor pluginAcceptor) {
-        pluginAcceptor.addImports(IMPORTS);
-    }
-}
+include::{basedir}/neo4j-gremlin/src/main/java/org/apache/tinkerpop/gremlin/neo4j/jsr223/Neo4jGremlinPlugin.java[]
 ----
 
 With the above plugin implementations, users can now download respective binaries for Gremlin
Console, Gremlin Server, etc.


Mime
View raw message