final class FallbackPropertyCodecProvider extends java.lang.Object implements PropertyCodecProvider
Modifier and Type | Field and Description |
---|---|
private CodecRegistry |
codecRegistry |
private PojoCodec<?> |
pojoCodec |
Constructor and Description |
---|
FallbackPropertyCodecProvider(PojoCodec<?> pojoCodec,
CodecRegistry codecRegistry) |
Modifier and Type | Method and Description |
---|---|
<S> Codec<S> |
get(TypeWithTypeParameters<S> type,
PropertyCodecRegistry propertyCodecRegistry)
Get a
Codec using the given context, which includes, most importantly, the class and bound type parameters
for which a Codec is required. |
private final CodecRegistry codecRegistry
private final PojoCodec<?> pojoCodec
FallbackPropertyCodecProvider(PojoCodec<?> pojoCodec, CodecRegistry codecRegistry)
public <S> Codec<S> get(TypeWithTypeParameters<S> type, PropertyCodecRegistry propertyCodecRegistry)
PropertyCodecProvider
Codec
using the given context, which includes, most importantly, the class and bound type parameters
for which a Codec
is required.get
in interface PropertyCodecProvider
S
- the type of the class for which a Codec is requiredtype
- the class and bound type parameters for which to get a CodecpropertyCodecRegistry
- the registry to use for resolving dependent Codec instances