[JAVA-1655] Improve changing codecs Created: 20/Feb/15  Updated: 31/Mar/15  Resolved: 26/Feb/15

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

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


 Description   

Currently wrapping MongoClient and changing the codec repository is painful especially compared to MongoDatabase.



 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 Ross Lawley [ 26/Feb/15 ]

Added codec registry helpers and make extending MongoClientOptions simpler.

Comment by Githook User [ 26/Feb/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Simplified CodecRegistries

Created a CodecRegistryHelper simplifyin the creation and combining of registries.
New CodecRegistries accessible from the helper:

  • SimpleCodecRegistry is a simple wrapper providing a registry for a specific codec
  • ProviderCodecRegistry takes a list of codec providers to use for finding the correct codec
  • PreferredCodecRegistry takes two codec registries and uses the first for codec lookups then falls back to the second registry

Drivers internally use the internal RootCodecRegistry which wraps the user provided codec registry and throws a CodecConfigurationException if a codec can't be found

JAVA-1655
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/2f0cc6795dfa2e704a42cf4b35c0070f30c1c697

Comment by Githook User [ 26/Feb/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: MongoClientOption builders can now take a MongoClientOption

Making copying them easier - refs JAVA-1655
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/0a3d2821dd4f72ccab0b50c0ce77157412ee503b

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