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

co.com.sofka.infraestructure.bus.serialize.SuccessNotificationSerializer Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package co.com.sofka.infraestructure.bus.serialize;

import co.com.sofka.infraestructure.AbstractSerializer;
import co.com.sofka.infraestructure.bus.notification.SuccessNotification;

public final class SuccessNotificationSerializer extends AbstractSerializer {

    private static SuccessNotificationSerializer eventSerializer;

    private SuccessNotificationSerializer() {
        super();
    }


    public static synchronized SuccessNotificationSerializer instance() {
        if (eventSerializer == null) {
            eventSerializer = new SuccessNotificationSerializer();
        }
        return eventSerializer;
    }


    public SuccessNotification deserialize(String aSerialization) {
        return gson.fromJson(aSerialization, SuccessNotification.class);
    }


    public String serialize(SuccessNotification object) {
        return gson.toJson(object);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy