Package uk.gov.gchq.gaffer.rest.factory
Class DefaultGraphFactory
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.factory.DefaultGraphFactory
-
- All Implemented Interfaces:
GraphFactory
public class DefaultGraphFactory extends Object implements GraphFactory
Default implementation of theGraphFactoryinterface, used by HK2 to instantiate defaultGraphinstances.
-
-
Constructor Summary
Constructors Constructor Description DefaultGraphFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph.BuildercreateGraphBuilder()Create a newGraph.Builderinstance.static GraphFactorycreateGraphFactory()GraphgetGraph()Get theGraphinstance.booleanisSingletonGraph()static voidsetGraph(Graph graph)voidsetSingletonGraph(boolean singletonGraph)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.rest.factory.GraphFactory
createGraph
-
-
-
-
Method Detail
-
createGraphFactory
public static GraphFactory createGraphFactory()
-
getGraph
public Graph getGraph()
Description copied from interface:GraphFactoryGet theGraphinstance.- Specified by:
getGraphin interfaceGraphFactory- Returns:
- the graph
-
setGraph
public static void setGraph(Graph graph)
-
isSingletonGraph
public boolean isSingletonGraph()
-
setSingletonGraph
public void setSingletonGraph(boolean singletonGraph)
-
createGraphBuilder
public Graph.Builder createGraphBuilder()
Description copied from interface:GraphFactoryCreate a newGraph.Builderinstance.- Specified by:
createGraphBuilderin interfaceGraphFactory- Returns:
- the graph builder
-
-