Skip to content

Commit

Permalink
fix: update the configuration to use apache conf 2
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Jul 13, 2023
1 parent 536b030 commit 2dc5606
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package org.eclipse.jnosql.mapping.graph.connections;

import com.arangodb.tinkerpop.gremlin.utils.ArangoDBConfigurationBuilder;
import org.apache.commons.configuration.BaseConfiguration;
import org.eclipse.jnosql.communication.Settings;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.apache.tinkerpop.gremlin.structure.util.GraphFactory;
Expand Down Expand Up @@ -73,7 +74,13 @@ public Graph apply(Settings settings) {
.stream()
.map(EdgeConfiguration::parse)
.forEach(e -> e.add(builder));
return GraphFactory.open(builder.build());
BaseConfiguration configuration = builder.build();

var conf2 = new org.apache.commons.configuration2.BaseConfiguration();
configuration.getKeys().forEachRemaining(k -> {
conf2.addProperty(k, configuration.getProperty(k));
});
return GraphFactory.open(conf2);
}


Expand Down

0 comments on commit 2dc5606

Please sign in to comment.