DATAGRAPH-393 Use supplied RestGraphDatabase as GraphDatabase in MappingInfrastructure
This commit is contained in:
@@ -107,6 +107,9 @@ public class MappingInfrastructureFactoryBean implements FactoryBean<Infrastruct
|
||||
if (this.graphDatabaseService == null && graphDatabase instanceof DelegatingGraphDatabase) {
|
||||
this.graphDatabaseService = ((DelegatingGraphDatabase) graphDatabase).getGraphDatabaseService();
|
||||
}
|
||||
if (this.graphDatabase == null && graphDatabaseService instanceof GraphDatabase) {
|
||||
this.graphDatabase = (GraphDatabase)graphDatabaseService;
|
||||
}
|
||||
if (this.graphDatabase == null) {
|
||||
this.graphDatabase = new DelegatingGraphDatabase(graphDatabaseService);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user