[JAVA-4774] Deprecate MongoClientSettings#codecRegistry in favor of MongoClientSettings#codecProvider Created: 13/Oct/22 Updated: 07/Jul/23 |
|
| Status: | Backlog |
| Project: | Java Driver |
| Component/s: | Codecs, Connection Management |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jeffrey Yemin | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Also add a new CodecProviders builder class similar to CodecRegistries Justification: the CodecRegistry interface extends CodecProvider, and the driver already treats the user-provided registry only as a provider, since it always wraps the user-provided one via CodecRegistries#withUuidRepresentation. Making this change would clarify that the driver effectively treats the registry as a provider. Alternatively, we could just document this fact in MongoClientSettings so that neither we nor our users are confused about it. |