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 theGraphFactory
interface, used by HK2 to instantiate defaultGraph
instances.
-
-
Constructor Summary
Constructors Constructor Description DefaultGraphFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph.Builder
createGraphBuilder()
Create a newGraph.Builder
instance.static GraphFactory
createGraphFactory()
Graph
getGraph()
Get theGraph
instance.boolean
isSingletonGraph()
static void
setGraph(Graph graph)
void
setSingletonGraph(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:GraphFactory
Get theGraph
instance.- Specified by:
getGraph
in 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:GraphFactory
Create a newGraph.Builder
instance.- Specified by:
createGraphBuilder
in interfaceGraphFactory
- Returns:
- the graph builder
-
-