Re: Java driver DBCollection interface parametrization

23 views
Skip to first unread message

Jeff Yemin

unread,
Oct 14, 2012, 9:16:35 PM10/14/12
to mongod...@googlegroups.com
Thanks for your interest, Artem.

We are working on a generics-based approach for the 3.0 version of the Java driver.  If you'd like to be an early tester, please drop me a line and let me know.

Regards,
Jeff

On Saturday, October 13, 2012 7:49:35 AM UTC-4, Artem Redkin wrote:
Hi!

I was wandering, why is java driver's DBCollection parametrized with DBObject and not with generic type? It is possible to provide custom solution for serializing/deserializing with DBEncoderFactory, but one is limited to wrapping custom classes with DBObject... It limits a bit libraries, such as mongo-jackson-mapper.

Are there any plans/wishes to implement this? I've poked around in the source codes and implemented it (all default methods operate with DBCollection<DBObject>, so interoperability with 3-party code should not be a problem), would you be interested in pull-request?

Thanks!

Artem Redkin

unread,
Oct 15, 2012, 1:17:45 AM10/15/12
to mongod...@googlegroups.com
Hi, Jeff!

Thanks for answer, i would like to try it :).
Reply all
Reply to author
Forward
0 new messages