Interface PropertyCodecRegistry

  • public interface PropertyCodecRegistry
    A variant of CodecRegistry that generates codecs for PojoCodec.

    This is a specialized codec registry that retrieves codecs which account for type parameters associated with a property. In particular this should only be used to add support for custom container types like optionals. It's only applicable for use by PojoCodec registered through PojoCodecProvider.builder().

    • Method Detail

      • get

        <T> Codec<T> get​(TypeWithTypeParameters<T> type)
        Gets a Codec for the given Class.
        Type Parameters:
        T - the class type
        type - the Class associated type parameters for this property for which to get a Codec
        a codec for the given class
        CodecConfigurationException - if the registry does not contain a codec for the given class.