Package overit.geocall.event.consumer
Class JsonDeserializer
java.lang.Object
overit.geocall.event.consumer.JsonDeserializer
- All Implemented Interfaces:
MessageDeserializer<Object>
Deserializer for specific JSON message objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(String messageSerialized, Class classMessage) Deserialize the body of the message with the type passed as a parameter
-
Constructor Details
-
JsonDeserializer
-
-
Method Details
-
deserialize
Description copied from interface:MessageDeserializerDeserialize the body of the message with the type passed as a parameter- Specified by:
deserializein interfaceMessageDeserializer<Object>- Parameters:
messageSerialized- body of the message serialized as stringclassMessage- 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
-