[JAVA-3506] Make CodecRegistry extend CodecProvider Created: 06/Nov/19  Updated: 28/Oct/23  Resolved: 07/Jan/20

Status: Closed
Project: Java Driver
Component/s: Codecs
Affects Version/s: None
Fix Version/s: 4.0.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Support standard UUID representation
Backwards Compatibility: Minor Change

 Description   

Make CodecRegistry extend CodecProvider.  This will enable removal of a runtime check for the UUID representation work.  

It's only backwards breaking for applications that implement their own CodecRegistry, which I expect to be quite rare.



 Comments   
Comment by Githook User [ 07/Jan/20 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: CodecRegistry extends CodecProvider

This enables an existing CodecRegistry to be wrapped by another CodecRegistry and used
as a CodecProvider. We take advantage of this for the
OverridableUuidRepresentationCodecRegistry, allowing us to remove an ugly cast.

JAVA-3506
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/872ed40cda7b131ad805dcdd7918054f5d0f3b05

Generated at Thu Feb 08 08:59:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.