Hi @Lloyd_Edano

We considered this a long time ago but ultimately felt it was something that should be left to a dependency injection framework like Spring (e.g. https://www.baeldung.com/spring-data-mongodb-connection) instead of implemented in the driver.

Note that every part of the connection string (and much more) can also be configured in code using ``MongoClientSettings.Builder` and related classes. See https://www.mongodb.com/docs/drivers/java/sync/current/fundamentals/connection/mongoclientsettings/ for documentation. So you can fairly easily implement something like this yourself in case you are not using a DI framework.

Regards,
Jeff