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 Details

    • getCodec

      PolymorphicCodec<T> getCodec(Type type, TypeCodecRegistry typeCodecRegistry, CodecConfiguration codecConfiguration)
      Parameters:
      type - the type to be handled
      typeCodecRegistry - codec registry for any type
      codecConfiguration -
      Returns:
      null, if resolver cannot handle type or a codec that is able to handle the type