Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4774

Deprecate MongoClientSettings#codecRegistry in favor of MongoClientSettings#codecProvider

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: