DATAGRAPH-393 - Use supplied RestGraphDatabase as GraphDatabase in MappingInfrastructure.
This commit is contained in:
committed by
Oliver Gierke
parent
c09a657f0c
commit
4c871b51bf
@@ -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