public class LegacyNestedRouteModelTypeAdapter extends com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.nested.NestableElementModel>
TL;DR, NestableElementModel has been promoted to ComponentModel which transforms the element models into
composites. This is a problem for the particular case of NestedRouteModel since it already was a composite, whose
children were serialized under the key nestedComponents. Because of this change, that key would change to
childComponents. This type adapter preserves the old name allowing existing clients to still be able to deserialize old
instances.
| Constructor and Description |
|---|
LegacyNestedRouteModelTypeAdapter(com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.nested.NestableElementModel> delegate,
com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.meta.model.nested.NestableElementModel |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
org.mule.runtime.api.meta.model.nested.NestableElementModel value) |
public LegacyNestedRouteModelTypeAdapter(com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.nested.NestableElementModel> delegate, com.google.gson.Gson gson)
public void write(com.google.gson.stream.JsonWriter out,
org.mule.runtime.api.meta.model.nested.NestableElementModel value)
throws IOException
write in class com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.nested.NestableElementModel>IOExceptionpublic org.mule.runtime.api.meta.model.nested.NestableElementModel read(com.google.gson.stream.JsonReader in) throws IOException
read in class com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.nested.NestableElementModel>IOExceptionCopyright © 2022 MuleSoft, Inc.. All rights reserved.