Package org.bson.conversions
Interface Bson
-
- All Known Implementing Classes:
BasicDBObject
,BsonDocument
,BsonDocumentWrapper
,CommandResult
,Document
,RawBsonDocument
@Deprecated(since="2022-10-31") public interface Bson
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.An interface for types that are able to render themselves into aBsonDocument
.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <TDocument>
BsonDocumenttoBsonDocument(java.lang.Class<TDocument> documentClass, CodecRegistry codecRegistry)
Deprecated.Render the filter into a BsonDocument.
-
-
-
Method Detail
-
toBsonDocument
<TDocument> BsonDocument toBsonDocument(java.lang.Class<TDocument> documentClass, CodecRegistry codecRegistry)
Deprecated.Render the filter into a BsonDocument.- Type Parameters:
TDocument
- the type of the document class- Parameters:
documentClass
- the document class in scope for the collection. This parameter may be ignored, but it may be used to alter the structure of the returnedBsonDocument
based on some knowledge of the document class.codecRegistry
- the codec registry. This parameter may be ignored, but it may be used to look upCodec
instances for the document class or any other related class.- Returns:
- the BsonDocument
-
-