Skip to content

Commit 1954b88

Browse files
authoredJan 23, 2024
[DE-765] architectural tests (#538)
* v7.5.0-SNAPSHOT * archTest: InternalsTest * archTest: annotated API classes * archTest: annotated API methods and parameters * archTest: annotated API constructors * archTest: generic types * archTest: annotated API with generic types
1 parent 5b1b958 commit 1954b88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+391
-31
lines changed
 

‎core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.arangodb</groupId>
88
<artifactId>arangodb-java-driver-parent</artifactId>
9-
<version>7.4.0</version>
9+
<version>7.5.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<name>core</name>

‎core/src/main/java/com/arangodb/ArangoDB.java

+8-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
package com.arangodb;
2222

23+
import com.arangodb.arch.UnstableApi;
2324
import com.arangodb.config.ArangoConfigProperties;
2425
import com.arangodb.config.HostDescription;
2526
import com.arangodb.entity.*;
@@ -626,6 +627,7 @@ public Builder asyncExecutor(final Executor executor) {
626627
return this;
627628
}
628629

630+
@UnstableApi
629631
protected ProtocolProvider protocolProvider(Protocol protocol) {
630632
ServiceLoader<ProtocolProvider> loader = ServiceLoader.load(ProtocolProvider.class);
631633
for (ProtocolProvider p : loader) {
@@ -637,7 +639,8 @@ protected ProtocolProvider protocolProvider(Protocol protocol) {
637639
throw new ArangoDBException("No ProtocolProvider found for protocol: " + protocol);
638640
}
639641

640-
protected HostHandler createHostHandler(final HostResolver hostResolver) {
642+
@UnstableApi
643+
protected HostHandler createHostHandler(@UnstableApi final HostResolver hostResolver) {
641644

642645
final HostHandler hostHandler;
643646

@@ -664,7 +667,8 @@ protected HostHandler createHostHandler(final HostResolver hostResolver) {
664667
return new DirtyReadHostHandler(hostHandler, new RoundRobinHostHandler(hostResolver));
665668
}
666669

667-
protected HostResolver createHostResolver(final Collection<Host> hosts, final ConnectionFactory connectionFactory) {
670+
@UnstableApi
671+
protected HostResolver createHostResolver(@UnstableApi final Collection<Host> hosts, @UnstableApi final ConnectionFactory connectionFactory) {
668672
Boolean acquireHostList = config.getAcquireHostList();
669673
if (acquireHostList != null && acquireHostList) {
670674
LOG.debug("acquireHostList -> Use ExtendedHostResolver");
@@ -676,7 +680,8 @@ protected HostResolver createHostResolver(final Collection<Host> hosts, final Co
676680
}
677681
}
678682

679-
protected Collection<Host> createHostList(final ConnectionFactory connectionFactory) {
683+
@UnstableApi
684+
protected Collection<Host> createHostList(@UnstableApi final ConnectionFactory connectionFactory) {
680685
final Collection<Host> hostList = new ArrayList<>();
681686
for (final HostDescription host : config.getHosts()) {
682687
hostList.add(HostUtils.createHost(host, config, connectionFactory));

0 commit comments

Comments
 (0)
Please sign in to comment.