Interface ISerializationConverterRegistry

All Known Implementing Classes:
SerializationConverterRegistry

public interface ISerializationConverterRegistry
This is the callback interface implemented by SerializationConverterRegistry for registration via the SPI interface.
Author:
Philip Helger
  • Method Details

    • registerSerializationConverter

      <T> void registerSerializationConverter(@Nonnull Class<T> aClass, @Nonnull ISerializationConverter<T> aConverter)
      Register a new serialization converter.
      Type Parameters:
      T - Type for which a converter should be registered
      Parameters:
      aClass - The class for which the converter is meant. May not be null.
      aConverter - The converter to be registered. May not be null.
      Throws:
      IllegalArgumentException - If the passed class already implements the java.io.Serializable interface.