Class PropertyCodecRegistryImpl

  • All Implemented Interfaces:
    org.bson.codecs.pojo.PropertyCodecRegistry

    public class PropertyCodecRegistryImpl
    extends Object
    implements org.bson.codecs.pojo.PropertyCodecRegistry
    Defines an all purpose registry for property codecs
    Since:
    2.0
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Detail

      • PropertyCodecRegistryImpl

        public PropertyCodecRegistryImpl​(org.bson.codecs.Codec<?> pojoCodec,
                                         org.bson.codecs.configuration.CodecRegistry codecRegistry,
                                         List<org.bson.codecs.pojo.PropertyCodecProvider> propertyCodecProviders)
        Creates an all purpose registry for property codecs
        Parameters:
        pojoCodec - the "parent" codec
        codecRegistry - the parent registry
        propertyCodecProviders - a list of providers
    • Method Detail

      • get

        public <S> org.bson.codecs.Codec<S> get​(org.bson.codecs.pojo.TypeWithTypeParameters<S> type)
        Specified by:
        get in interface org.bson.codecs.pojo.PropertyCodecRegistry