Class JenaOrCoreGraphFactory
- java.lang.Object
-
- org.nuxeo.ecm.platform.relations.jena.JenaOrCoreGraphFactory
-
- All Implemented Interfaces:
GraphFactory
public class JenaOrCoreGraphFactory extends Object implements GraphFactory
A factory that detects if a Jena graph or a core graph should be used, and remembers it for future invocations.A Jena graph is used if it contains at least one relation for the given graph.
-
-
Field Summary
Fields Modifier and Type Field Description protected static JenaGraph
testJenaGraph
-
Constructor Summary
Constructors Constructor Description JenaOrCoreGraphFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph
createGraph(GraphDescription graphDescription, CoreSession session)
Creates an instance of the graph.
-
-
-
Field Detail
-
testJenaGraph
protected static JenaGraph testJenaGraph
-
-
Constructor Detail
-
JenaOrCoreGraphFactory
public JenaOrCoreGraphFactory()
-
-
Method Detail
-
createGraph
public Graph createGraph(GraphDescription graphDescription, CoreSession session)
Description copied from interface:GraphFactory
Creates an instance of the graph.- Specified by:
createGraph
in interfaceGraphFactory
-
-