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

com.tinkerpop.rexster.config.GraphConfigurationContext Maven / Gradle / Ivy

The newest version!
package com.tinkerpop.rexster.config;

import com.tinkerpop.rexster.RexsterApplicationGraph;
import org.apache.commons.configuration.Configuration;

import java.util.Map;

/**
 * A helper object which contains properties and references for a GraphConfiguration.
 *
 * @author Joshua Shinavier (http://fortytwo.net)
 */
public class GraphConfigurationContext {
    private final Configuration properties;
    private final Map graphs;

    public GraphConfigurationContext(final Configuration properties,
                                     final Map graphs) {
        this.properties = properties;
        this.graphs = graphs;
    }

    /**
     * @return the configuration properties for the graph under construction
     */
    public Configuration getProperties() {
        return properties;
    }

    /**
     * @return a map of references, by name, to all graphs constructed up to this point.
     * This allows the graph under construction to build upon other graphs.
     */
    public Map getGraphs() {
        return graphs;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy