Skip to content

Custom serializers and deserializers

Nicolas Morel edited this page Dec 9, 2013 · 7 revisions

To use your own serializer or deserializer, create a class that extends com.github.nmorel.gwtjackson.client.AbstractConfiguration and define your serializer/deserializer inside the configure() method. Then register your class in your *.gwt.xml file with the property gwtjackson.configuration.extension :

<extend-configuration-property name="gwtjackson.configuration.extension" value="com.MyConfiguration" />

For an example, you can look at the class com.github.nmorel.gwtjackson.rebind.DefaultConfiguration which is used internally to register all the default serializers and deserializers.

Clone this wiki locally