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

Deprecate MongoClientSettings#codecRegistry in favor of MongoClientSettings#codecProvider

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: