Package de.bild.codec
Interface CodecResolver<T>
public interface CodecResolver<T>
This interface can be used to add special handling for pojos of certain types.
Simply register a CodecResolver when you build the
PojoCodecProvider-
Method Summary
Modifier and TypeMethodDescriptiongetCodec(Type type, TypeCodecRegistry typeCodecRegistry, CodecConfiguration codecConfiguration)
-
Method Details
-
getCodec
PolymorphicCodec<T> getCodec(Type type, TypeCodecRegistry typeCodecRegistry, CodecConfiguration codecConfiguration) - Parameters:
type- the type to be handledtypeCodecRegistry- codec registry for any typecodecConfiguration-- Returns:
- null, if resolver cannot handle type or a codec that is able to handle the type
-