org.axonframework.serializer.json
Class JodaDeserializer<T>
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<T>
org.axonframework.serializer.json.JodaDeserializer<T>
- Type Parameters:
T - The type of Joda object to serialize
public class JodaDeserializer<T>
- extends com.fasterxml.jackson.databind.JsonDeserializer<T>
Jackson Serializer used to serialize and deserialize Joda DateTime classes. These classes use the convention that
the toString() method returns an ISO8601 formatted string, while a constructor accepting an Object will allow
one to reconstruct the instant from this String.
- Since:
- 2.2
- Author:
- Allard Buijze
| Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer |
com.fasterxml.jackson.databind.JsonDeserializer.None |
|
Method Summary |
T |
deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt)
|
| Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer |
deserialize, deserializeWithType, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JodaDeserializer
public JodaDeserializer(Class<T> instantType)
- Parameters:
instantType - The type of object to serialize into
- Throws:
AxonConfigurationException - if the given instantType is
incompatible with this serializer
deserialize
public T deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt)
throws IOException
- Specified by:
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<T>
- Throws:
IOException
Copyright © 2010-2016. All Rights Reserved.