Package com.mongodb
Class DBObjectCodecProvider
java.lang.Object
com.mongodb.DBObjectCodecProvider
- All Implemented Interfaces:
org.bson.codecs.configuration.CodecProvider
public class DBObjectCodecProvider
extends Object
implements org.bson.codecs.configuration.CodecProvider
A provider for a DBObjectCodec.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an instance using the defaultBsonTypeClassMap
.DBObjectCodecProvider
(org.bson.codecs.BsonTypeClassMap bsonTypeClassMap) Construct an instance with the givenBsonTypeClassMap
. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bson.codecs.configuration.CodecProvider
get
-
Constructor Details
-
DBObjectCodecProvider
public DBObjectCodecProvider()Construct an instance using the defaultBsonTypeClassMap
.- See Also:
-
DBObjectCodec.getDefaultBsonTypeClassMap()
-
DBObjectCodecProvider
public DBObjectCodecProvider(org.bson.codecs.BsonTypeClassMap bsonTypeClassMap) Construct an instance with the givenBsonTypeClassMap
.- Parameters:
bsonTypeClassMap
- the BsonTypeClassMap
-
-
Method Details
-
get
public <T> org.bson.codecs.Codec<T> get(Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry) - Specified by:
get
in interfaceorg.bson.codecs.configuration.CodecProvider
-
equals
-
hashCode
public int hashCode() -
toString
-