@FunctionalInterface public interface CodecRegistryProvider
CodecRegistry from the underlying MongoDB Java driver.| Modifier and Type | Method and Description | 
|---|---|
| default <T> Optional<org.bson.codecs.Codec<T>> | getCodecFor(Class<T> type)Get the  Codecregistered for the given type or anempty Optionalinstead. | 
| org.bson.codecs.configuration.CodecRegistry | getCodecRegistry()Get the underlying  CodecRegistryused by the MongoDB Java driver. | 
| default boolean | hasCodecFor(Class<?> type)Checks if a  Codecis registered for a given type. | 
org.bson.codecs.configuration.CodecRegistry getCodecRegistry()
CodecRegistry used by the MongoDB Java driver.IllegalStateException - if CodecRegistry cannot be obtained.default boolean hasCodecFor(Class<?> type)
Codec is registered for a given type.type - must not be null.getCodecRegistry() holds a Codec for given type.IllegalStateException - if CodecRegistry cannot be obtained.default <T> Optional<org.bson.codecs.Codec<T>> getCodecFor(Class<T> type)
Codec registered for the given type or an empty Optional
 instead.T - type - must not be null.IllegalArgumentException - if type is null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.