Interface EventSerializer

All Known Implementing Classes:
JacksonEventSerializer

public interface EventSerializer
Author:
Oliver Drotbohm
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    deserialize(Object serialized, Class<T> type)
    Deserializes the event from the serialization format into an instance of the given type.
    Serializes the given event into a storable format.
  • Method Details

    • serialize

      Object serialize(Object event)
      Serializes the given event into a storable format.
      Parameters:
      event - must not be null.
      Returns:
      will never be null.
    • deserialize

      <T> T deserialize(Object serialized, Class<T> type)
      Deserializes the event from the serialization format into an instance of the given type.
      Parameters:
      serialized - must not be null.
      type - must not be null.
      Returns:
      will never be null.