public class DefaultGraphFactory extends Object implements GraphFactory
GraphFactory
interface, used by HK2 to
instantiate default Graph
instances.Constructor and Description |
---|
DefaultGraphFactory() |
Modifier and Type | Method and Description |
---|---|
Graph.Builder |
createGraphBuilder()
Create a new
Graph.Builder instance. |
static GraphFactory |
createGraphFactory() |
Graph |
getGraph()
Get the
Graph instance. |
boolean |
isSingletonGraph() |
static void |
setGraph(Graph graph) |
void |
setSingletonGraph(boolean singletonGraph) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createGraph
public static GraphFactory createGraphFactory()
createGraphFactory
in interface GraphFactory
public Graph getGraph()
GraphFactory
Graph
instance.getGraph
in interface GraphFactory
public static void setGraph(Graph graph)
public boolean isSingletonGraph()
public void setSingletonGraph(boolean singletonGraph)
public Graph.Builder createGraphBuilder()
GraphFactory
Graph.Builder
instance.createGraphBuilder
in interface GraphFactory
Copyright © 2022. All rights reserved.