All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tinkerpop.gremlin.GraphManager Maven / Gradle / Ivy

The newest version!
package com.tinkerpop.gremlin;

/**
 * Holds the GraphProvider specified by the implementer using the StructureSuite.
 *
 * @author Stephen Mallette (http://stephen.genoprime.com)
 */
public class GraphManager {
    private static GraphProvider graphProvider;

    public static GraphProvider set(final GraphProvider graphProvider) {
        final GraphProvider old = GraphManager.graphProvider;
        GraphManager.graphProvider = graphProvider;
        return old;
    }

    public static GraphProvider get() {
        return graphProvider;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy