public interface PropertyCodecProvider
CodecProvider
that generates codecs for PojoCodec
.
This is a specialized codec provider 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()
.
Modifier and Type | Method and Description |
---|---|
<T> Codec<T> |
get(TypeWithTypeParameters<T> type,
PropertyCodecRegistry registry)
Get a
Codec using the given context, which includes, most importantly, the class and bound type parameters
for which a Codec is required. |
<T> Codec<T> get(TypeWithTypeParameters<T> type, PropertyCodecRegistry registry)
Codec
using the given context, which includes, most importantly, the class and bound type parameters
for which a Codec
is required.T
- the type of the class for which a Codec is requiredtype
- the class and bound type parameters for which to get a Codecregistry
- the registry to use for resolving dependent Codec instances