Interface MessageDeserializer<T>

All Known Implementing Classes:
JsonDeserializer

public interface MessageDeserializer<T>
Deserializer for generic message objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(String message, Class<T> classMessage)
    Deserialize the body of the message with the type passed as a parameter
  • Method Details

    • deserialize

      T deserialize(String message, Class<T> classMessage) throws SpinException
      Deserialize the body of the message with the type passed as a parameter
      Parameters:
      message - body of the message serialized as string
      classMessage - class of the message that will be returned after deserialization
      Returns:
      the object of the message deserialized
      Throws:
      SpinException - if an exception is thrown during the deserialization