Uses of Interface
org.bson.codecs.configuration.CodecRegistry
-
Packages that use CodecRegistry Package Description org.bson Contains the base BSON classes.org.bson.codecs This package contains all the default BSON codecs.org.bson.codecs.configuration This package contains codec configurations and the codec registry helperorg.bson.codecs.jsr310 This package contains classes specific to the JSR-310 Date and Time APIorg.bson.codecs.pojo This package contains classes specific to mapping user POJOs.org.bson.conversions This package contains the Bson interface -
-
Uses of CodecRegistry in org.bson
Methods in org.bson with parameters of type CodecRegistry Modifier and Type Method Description static BsonDocument
BsonDocumentWrapper. asBsonDocument(Object document, CodecRegistry codecRegistry)
A helper to convert an document of type Object to a BsonDocument<C> BsonDocument
BsonDocument. toBsonDocument(Class<C> documentClass, CodecRegistry codecRegistry)
<C> BsonDocument
Document. toBsonDocument(Class<C> documentClass, CodecRegistry codecRegistry)
-
Uses of CodecRegistry in org.bson.codecs
Methods in org.bson.codecs that return CodecRegistry Modifier and Type Method Description CodecRegistry
BsonDocumentCodec. getCodecRegistry()
Gets theCodecRegistry
for thisCodec
.Methods in org.bson.codecs with parameters of type CodecRegistry Modifier and Type Method Description <T> Codec<T>
BsonValueCodecProvider. get(Class<T> clazz, CodecRegistry registry)
<T> Codec<T>
DocumentCodecProvider. get(Class<T> clazz, CodecRegistry registry)
<T> Codec<T>
IterableCodecProvider. get(Class<T> clazz, CodecRegistry registry)
<T> Codec<T>
MapCodecProvider. get(Class<T> clazz, CodecRegistry registry)
<T> Codec<T>
UuidCodecProvider. get(Class<T> clazz, CodecRegistry registry)
<T> Codec<T>
ValueCodecProvider. get(Class<T> clazz, CodecRegistry registry)
Constructors in org.bson.codecs with parameters of type CodecRegistry Constructor Description BsonArrayCodec(CodecRegistry codecRegistry)
Construct an instance with the given registryBsonDocumentCodec(CodecRegistry codecRegistry)
Creates a new instance initialised with the given codec registry.BsonTypeCodecMap(BsonTypeClassMap bsonTypeClassMap, CodecRegistry codecRegistry)
Initializes the map by iterating the keys of the given BsonTypeClassMap and looking up the Codec for the Class mapped to each key.BsonValueCodec(CodecRegistry codecRegistry)
Creates a new instance initialised with the given codec registry.DocumentCodec(CodecRegistry registry)
Construct a new instance with the given registry.DocumentCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap)
Construct a new instance with the given registry and BSON type class map.DocumentCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap, Transformer valueTransformer)
Construct a new instance with the given registry and BSON type class map.IterableCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap)
Construct a new instance with the givenCodecRegistry
andBsonTypeClassMap
.IterableCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap, Transformer valueTransformer)
Construct a new instance with the givenCodecRegistry
andBsonTypeClassMap
.MapCodec(CodecRegistry registry)
Construct a new instance with the given registryMapCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap)
Construct a new instance with the given registry and BSON type class map.MapCodec(CodecRegistry registry, BsonTypeClassMap bsonTypeClassMap, Transformer valueTransformer)
Construct a new instance with the given registry and BSON type class map. -
Uses of CodecRegistry in org.bson.codecs.configuration
Methods in org.bson.codecs.configuration that return CodecRegistry Modifier and Type Method Description static CodecRegistry
CodecRegistries. fromCodecs(List<? extends Codec<?>> codecs)
Creates aCodecRegistry
from the provided list ofCodec
instances.static CodecRegistry
CodecRegistries. fromCodecs(Codec<?>... codecs)
Creates aCodecRegistry
from the provided list ofCodec
instances.static CodecRegistry
CodecRegistries. fromProviders(List<? extends CodecProvider> providers)
Creates aCodecRegistry
from the provided list ofCodecProvider
instances.static CodecRegistry
CodecRegistries. fromProviders(CodecProvider... providers)
Creates aCodecRegistry
from the provided list ofCodecProvider
instances.static CodecRegistry
CodecRegistries. fromRegistries(List<? extends CodecRegistry> registries)
ACodecRegistry
that combines the givenCodecRegistry
instances into a single registry.static CodecRegistry
CodecRegistries. fromRegistries(CodecRegistry... registries)
ACodecRegistry
that combines the givenCodecRegistry
instances into a single registry.Methods in org.bson.codecs.configuration with parameters of type CodecRegistry Modifier and Type Method Description static CodecRegistry
CodecRegistries. fromRegistries(CodecRegistry... registries)
ACodecRegistry
that combines the givenCodecRegistry
instances into a single registry.<T> Codec<T>
CodecProvider. get(Class<T> clazz, CodecRegistry registry)
Get aCodec
using the given context, which includes, most importantly, the Class for which aCodec
is required.Method parameters in org.bson.codecs.configuration with type arguments of type CodecRegistry Modifier and Type Method Description static CodecRegistry
CodecRegistries. fromRegistries(List<? extends CodecRegistry> registries)
ACodecRegistry
that combines the givenCodecRegistry
instances into a single registry. -
Uses of CodecRegistry in org.bson.codecs.jsr310
Methods in org.bson.codecs.jsr310 with parameters of type CodecRegistry Modifier and Type Method Description <T> Codec<T>
Jsr310CodecProvider. get(Class<T> clazz, CodecRegistry registry)
-
Uses of CodecRegistry in org.bson.codecs.pojo
Methods in org.bson.codecs.pojo with parameters of type CodecRegistry Modifier and Type Method Description <T> Codec<T>
PojoCodecProvider. get(Class<T> clazz, CodecRegistry registry)
-
Uses of CodecRegistry in org.bson.conversions
Methods in org.bson.conversions with parameters of type CodecRegistry Modifier and Type Method Description <TDocument>
BsonDocumentBson. toBsonDocument(Class<TDocument> documentClass, CodecRegistry codecRegistry)
Render the filter into a BsonDocument.
-