You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/05/01 22:07:05 UTC

incubator-tinkerpop git commit: Add one more code snippet for io section for vendors.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 8d818fb04 -> a4129ae8b


Add one more code snippet for io section for vendors.


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

Branch: refs/heads/master
Commit: a4129ae8b83d62c85ac4e5f5f1fb289745ef9840
Parents: 8d818fb
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri May 1 16:06:33 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri May 1 16:06:33 2015 -0400

----------------------------------------------------------------------
 docs/src/implementations.asciidoc | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/a4129ae8/docs/src/implementations.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/implementations.asciidoc b/docs/src/implementations.asciidoc
index e858d61..c524d15 100644
--- a/docs/src/implementations.asciidoc
+++ b/docs/src/implementations.asciidoc
@@ -256,7 +256,16 @@ public class MyGraphIoRegistry extends AbstractIoRegistry {
 }
 ----
 
-In the `Graph.io` method, provide the `IoRegistry` object to the supplied `Builder` and call the `create` method to return that `Io` instance.   In this way, `Graph` implementations can pre-configure custom serializers for IO interactions and users will not need to know about those details. Following this pattern will ensure proper execution of the test suite as well as simplified usage for end-users.
+In the `Graph.io` method, provide the `IoRegistry` object to the supplied `Builder` and call the `create` method to return that `Io` instance as follows:
+
+[source,java]
+----
+public <I extends Io> I io(final Io.Builder<I> builder) {
+    return (I) builder.graph(this).registry(myGraphIoRegistry).create();
+}}
+----
+
+In this way, `Graph` implementations can pre-configure custom serializers for IO interactions and users will not need to know about those details. Following this pattern will ensure proper execution of the test suite as well as simplified usage for end-users.
 
 [[validating-with-gremlin-test]]
 Validating with Gremlin-Test