public class ApplicationGraphProvider extends Object implements GraphProvider
Constructor and Description |
---|
ApplicationGraphProvider(SessionUtils sessionUtils,
ApplicationDao applicationDao) |
Modifier and Type | Method and Description |
---|---|
GraphInfo |
getGraphInfo()
The
GraphInfo should be used to provide details of the graph's nature, e.g. |
ImmutableGraph<ApplicationVertex,SimpleDomainEdge> |
loadGraph()
Loads the graph, this
GraphProvider handles. |
public ApplicationGraphProvider(SessionUtils sessionUtils, ApplicationDao applicationDao)
public GraphInfo getGraphInfo()
GraphProvider
GraphInfo
should be used to provide details of the graph's nature, e.g. the namespace, label or description
A ImmutableGraph
should also embed this information. The difference is, that the info should always be available,
even if the graph is not yet loaded, and should also never change during the provider's live time, whereas the
graph itself may change (e.g. different vertices/edges and properties (besides the ones defining the info)).getGraphInfo
in interface GraphProvider
public ImmutableGraph<ApplicationVertex,SimpleDomainEdge> loadGraph()
GraphProvider
GraphProvider
handles.
Loading may be performed very quickly, but also may take some time.loadGraph
in interface GraphProvider
Copyright © 2021. All rights reserved.