Class TinkerGraphDefaultProvider
java.lang.Object
org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraphDefaultProvider
- All Implemented Interfaces:
DefaultGraphProvider
Registers
TinkerGraph as gremlin-core's DefaultGraphProvider, discovered with
ServiceLoader (see META-INF/services), so that gremlin-core can open a
TinkerGraph for a deserialized remote Graph result or for the default subgraph()
side-effect without naming the implementation class directly.-
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.util.DefaultGraphProvider
NO_PROVIDER_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionopen(org.apache.commons.configuration2.Configuration configuration) Opens aTinkerGraphwith the given configuration.
-
Constructor Details
-
TinkerGraphDefaultProvider
public TinkerGraphDefaultProvider()
-
-
Method Details
-
open
Opens aTinkerGraphwith the given configuration. If the configuration does not name a graph class inGraph.GRAPH,TinkerGraphis recorded there, as it would be for a graph opened throughGraphFactory.- Specified by:
openin interfaceDefaultGraphProvider- Parameters:
configuration- configuration for the graph; an implementation should tolerate an empty configuration and apply its own defaults
-