Class NotificationModelToIdentifierTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.notification.NotificationModel>
org.mule.runtime.extension.internal.persistence.NotificationModelToIdentifierTypeAdapter
public class NotificationModelToIdentifierTypeAdapter
extends com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.notification.NotificationModel>
TypeAdapter implementation for NotificationModel, which serializes it as notification identifiers. A
notification identifier follows the ComponentIdentifier structure,
notificationNamespace:notificationIdentifier.- Since:
- 1.1
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationModelToIdentifierTypeAdapter(Map<String, org.mule.runtime.api.meta.model.notification.NotificationModel> notificationModelMap) -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
NotificationModelToIdentifierTypeAdapter
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter out, org.mule.runtime.api.meta.model.notification.NotificationModel value) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.notification.NotificationModel>- Throws:
IOException
-
read
public org.mule.runtime.api.meta.model.notification.NotificationModel read(com.google.gson.stream.JsonReader in) throws IOException - Specified by:
readin classcom.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.notification.NotificationModel>- Throws:
IOException
-