public abstract class AbstractMuleArtifactModelJsonSerializer<T extends AbstractMuleArtifactModel> extends Object
AbstractMuleArtifactModel instance
to JSON format and back
TODO MULE-11007: these classes should be moved to a persistence module| Constructor and Description |
|---|
AbstractMuleArtifactModelJsonSerializer()
Creates a new serializer
|
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(String json)
Deserializes the given
JSON back into the corresponding Java object |
protected abstract Class<T> |
getParameterizedClass() |
String |
serialize(T muleArtifactModel)
Serializes the given
muleArtifactModel to JSON |
public AbstractMuleArtifactModelJsonSerializer()
public String serialize(T muleArtifactModel)
muleArtifactModel to JSONmuleArtifactModel - the describer to be marshaledJSON in String formatpublic T deserialize(String json)
JSON back into the corresponding Java objectjson - a describer JSON in String formatCopyright © 2017 MuleSoft, Inc.. All rights reserved.