[JAVA-4755] Simplify OverridableUuidRepresentationCodecRegistry Created: 07/Oct/22  Updated: 28/Oct/23  Resolved: 13/Oct/22

Status: Closed
Project: Java Driver
Component/s: Internal
Affects Version/s: None
Fix Version/s: 4.8.0

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

Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

OverridableUuidRepresentationCodecRegistry doesn't need to implement CodecRegistry. It can just implement CodecProvider, and CodecRegistries#withUuidRepresentation can be changed to just return fromProviders(new OverridableUuidRepresentationCodecProvider(codecRegistry, uuidRepresentation)).

It can also move into org.bson.codecs.configuration package and become package private.



 Comments   
Comment by Githook User [ 13/Oct/22 ]

Author:

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

Message: Simplify OverridableUuidRepresentationCodecRegistry (#1014)

Make it implement CodecProvider instead of CodecRegistry

JAVA-4755
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a8fe4ca48fbbd4c51b1ff76c2b255caff15cbb11

Generated at Thu Feb 08 09:02:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.