Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1659

Add Bson interface to enable type-safe MongoCollection API

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: API
    • None

      Introduce the Bson interface, and replaced all use of Object in the high-level API with it.

      BasicDBObject, Document, and BsonDocument will implement this interface, so any of them can be used to specify filter, sort, projection, update, etc. Third parties can create their own implementations to allow for other types to be used that are not included in the driver proper.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: