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

Deprecate Parameterizable, introduce default CodecProvider.get(Class<T>, List<Type>, CodecRegistry) instead

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 4.10.0
    • Affects Version/s: None
    • Component/s: Codecs
    • None
    • Fully Compatible
    • Needed
    • Hide

      Let's mention in "what's new" that `org.bson.codecs.Parameterizable` was deprecated. Instead of implementing this interface on a custom `org.bson.codecs.Codec`, a user now should override the new method `CodecProvider.get(Class, List, CodecRegistry)` on the `CodecProvider` for that `Codec`, if the codec is intended for a parameterized type.

      Show
      Let's mention in "what's new" that `org.bson.codecs.Parameterizable` was deprecated. Instead of implementing this interface on a custom `org.bson.codecs.Codec`, a user now should override the new method `CodecProvider.get(Class, List, CodecRegistry)` on the `CodecProvider` for that `Codec`, if the codec is intended for a parameterized type.

          Assignee:
          valentin.kovalenko@mongodb.com Valentin Kavalenka
          Reporter:
          valentin.kovalenko@mongodb.com Valentin Kavalenka
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Created:
            Updated:
            Resolved: