public class DBObjectCodecProvider extends Object implements CodecProvider
Constructor and Description |
---|
DBObjectCodecProvider()
Construct an instance using the default
BsonTypeClassMap . |
DBObjectCodecProvider(BsonTypeClassMap bsonTypeClassMap)
Construct an instance with the given
BsonTypeClassMap . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
<T> Codec<T> |
get(Class<T> clazz,
CodecRegistry registry)
Get a
Codec using the given context, which includes, most importantly, the Class for which a Codec is required. |
int |
hashCode() |
public DBObjectCodecProvider()
BsonTypeClassMap
.public DBObjectCodecProvider(BsonTypeClassMap bsonTypeClassMap)
BsonTypeClassMap
.bsonTypeClassMap
- the BsonTypeClassMappublic <T> Codec<T> get(Class<T> clazz, CodecRegistry registry)
CodecProvider
Codec
using the given context, which includes, most importantly, the Class for which a Codec
is required.get
in interface CodecProvider
T
- the type of the class for which a Codec is requiredclazz
- the Class for which to get a Codecregistry
- the registry to use for resolving dependent Codec instances