Interface CodecRegistry

All Known Subinterfaces:
MapperOperatorContract
All Known Implementing Classes:
BaseMapperOperator, DefaultMapperOperator

public interface CodecRegistry
Defines a registry for managing and retrieving codecs used in entity mapping. *

Note: This is an experimental feature and is currently considered unstable. It provides the foundation for the mapping system by allowing the registration of CodecAdapter instances that define how specific Java types are converted to and from raw Map structures.

Since:
0.3
Author:
a8kj7sea
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    Registers a codec for a specific class type.
  • Method Details

    • registerCodec

      <T> void registerCodec(Class<T> type, CodecAdapter<T,Map<String,Object>> codec)
      Registers a codec for a specific class type.

      Once registered, the mapping system will use this codec whenever it encounters the specified type during serialization (saving) or deserialization (loading).

      Type Parameters:
      T - the domain object type.
      Parameters:
      type - the class literal of the type to associate with the codec.
      codec - the CodecAdapter containing the serialization and deserialization logic.