Examples of JodaDateTimeSerializer


Examples of com.github.mrcritical.ironcache.internal.serializers.JodaDateTimeSerializer

   * @param json
   *            is the {@link ObjectMapper} to augment
   */
  protected static ObjectMapper configure(final ObjectMapper json) {
    final SimpleModule jodaModule = new SimpleModule("Joda");
    jodaModule.addSerializer(new JodaDateTimeSerializer());
    jodaModule.addDeserializer(DateTime.class, new JodaDateTimeDeserializer());
    json.registerModule(jodaModule);

    // Increase performance even more
    json.registerModule(new AfterburnerModule());
View Full Code Here

Examples of de.javakaffee.kryoserializers.jodatime.JodaDateTimeSerializer

*/
public class JodaDateTimeRegistration implements KryoCustomization {
   
    @Override
    public void customize( final Kryo kryo ) {
        kryo.register( DateTime.class, new JodaDateTimeSerializer() );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.