[JAVA-1445] Make it easier to derive one CodecRegistry from another Created: 12/Sep/14  Updated: 31/Mar/15  Resolved: 16/Oct/14

Status: Closed
Project: Java Driver
Component/s: API, Codecs
Affects Version/s: None
Fix Version/s: 3.0.0

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


 Description   

We should have a default RootCodecRegistry that includes

  • DBObjectCodecProvider
  • DocumentCodecProvider
  • BsonCodecProvider

and then allow easier customization from there, e.g. adding a single new Codec for one type.

A good use case for this is how easy it is to change the UuidRepresentation for the UuidCodec.



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 30/Jan/15 ]

Author:

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

Message: Added RootCodecRegistry.withCodec(Codec<T>) method to make it easier to create a copy of an existing registry with one additional codec

JAVA-1445
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/30405db0359b19c2aba7950b10323177f7f9146c

Comment by Githook User [ 16/Oct/14 ]

Author:

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

Message: Added RootCodecRegistry.withCodec(Codec<T>) method to make it easier to create a copy of an existing registry with one additional codec

JAVA-1445
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/30405db0359b19c2aba7950b10323177f7f9146c

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