All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dslplatform.json.ConfigureJodaTime Maven / Gradle / Ivy

There is a newer version: 1.10.0
Show newest version
package com.dslplatform.json;

public class ConfigureJodaTime implements Configuration {
	@Override
	public void configure(DslJson json) {
		json.registerReader(org.joda.time.LocalDate.class, JodaTimeConverter.LocalDateReader);
		json.registerWriter(org.joda.time.LocalDate.class, JodaTimeConverter.LocalDateWriter);
		json.registerReader(org.joda.time.DateTime.class, JodaTimeConverter.DateTimeReader);
		json.registerWriter(org.joda.time.DateTime.class, JodaTimeConverter.DateTimeWriter);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy