Class ExtensionModelTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.ExtensionModel>
org.mule.runtime.extension.internal.persistence.ExtensionModelTypeAdapter
public final class ExtensionModelTypeAdapter
extends com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.ExtensionModel>
A
TypeAdapter to handle ExtensionModel instances- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionModelTypeAdapter(com.google.gson.Gson gsonDelegate, org.mule.metadata.persistence.SerializationContext serializationContext, Map<String, org.mule.runtime.api.meta.model.error.ErrorModel> errorModelMap, 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
-
ExtensionModelTypeAdapter
public ExtensionModelTypeAdapter(com.google.gson.Gson gsonDelegate, org.mule.metadata.persistence.SerializationContext serializationContext, Map<String, org.mule.runtime.api.meta.model.error.ErrorModel> errorModelMap, Map<String, org.mule.runtime.api.meta.model.notification.NotificationModel> notificationModelMap)
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter out, org.mule.runtime.api.meta.model.ExtensionModel model) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.ExtensionModel>- Throws:
IOException
-
read
public org.mule.runtime.api.meta.model.ExtensionModel read(com.google.gson.stream.JsonReader in) throws IOException - Specified by:
readin classcom.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.ExtensionModel>- Throws:
IOException
-