Class PrimitiveCodecRegistry

  • All Implemented Interfaces:
    org.bson.codecs.configuration.CodecProvider, org.bson.codecs.configuration.CodecRegistry

    public class PrimitiveCodecRegistry
    extends Object
    implements org.bson.codecs.configuration.CodecRegistry
    A provider of codecs for primitive types
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Detail

      • PrimitiveCodecRegistry

        public PrimitiveCodecRegistry​(org.bson.codecs.configuration.CodecRegistry codecRegistry)
        Creates the provider
        codecRegistry - the registry
    • Method Detail

      • get

        public <T> org.bson.codecs.Codec<T> get​(Class<T> clazz)
        Specified by:
        get in interface org.bson.codecs.configuration.CodecRegistry
      • get

        public <T> org.bson.codecs.Codec<T> get​(Class<T> clazz,
                                                org.bson.codecs.configuration.CodecRegistry registry)
        Specified by:
        get in interface org.bson.codecs.configuration.CodecProvider