[JAVA-3659] Improve interoperability between legacy and standard MongoClient APIs Created: 11/Mar/20  Updated: 28/Oct/23  Resolved: 08/Dec/20

Status: Closed
Project: Java Driver
Component/s: Configuration
Affects Version/s: None
Fix Version/s: 4.2.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Backwards Compatibility: Fully Compatible
Documentation Changes: Needed

 Description   

To nudge people further towards com.mongodb.client.MongoClient interface and away from com.mongodb.MongoClient, we should:

  • Add com.mongodb.MongoClient constructors matching the factory methods in com.mongodb.client.MongoClients
  • Add methods to class com.mongodb.MongoClient to match those in interface com.mongodb.client.MongoClient
  • Add a method to initialize a MongoClientOptions.Builder from a MongoClientSettings instance
  • Add a method to create a MongoClientSettings instance from a MongoClientOptions instance plus connection-related properties


 Comments   
Comment by Githook User [ 11/Jan/21 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Update reference docs for legacy MongoClient API to use MongoClientSettings and ConnectionString

JAVA-3659
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/417f97fcb7634a9e8a5114be2f40e332ac8aef52

Comment by Githook User [ 08/Dec/20 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Improve interoperability between legacy and standard MongoClient APIs

  • Add com.mongodb.MongoClient constructors matching the factory methods in
    com.mongodb.client.MongoClients
  • Add a method to initialize a MongoClientOptions.Builder from a MongoClientSettings
    instance
  • Add a method to create a MongoClientSettings instance from a MongoClientOptions
    instance plus connection-related properties
  • Add methods to class com.mongodb.MongoClient to match those
    in interface com.mongodb.client.MongoClient

JAVA-3659
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/15b70cf7e5d41875bc46e57897f98d43ca60f4f6

Generated at Thu Feb 08 09:00:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.