Package org.mule.metadata.persistence
Interface MetadataTypeWriter
-
- All Known Implementing Classes:
AbstractJsonMetadataTypeWriter,JsonMetadataTypeWriter,ReducedJsonMetadataTypeWriter
public interface MetadataTypeWriterBase contract for implementations that serializeMetadataTypeobjects into a readable and processable JSON file, that can be deserialize again into aMetadataTypeusing aSerializedMetadataTypeLoader.- Since:
- 1.2.0, 1.1.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(MetadataType metadataType, com.google.gson.stream.JsonWriter writer)Given aMetadataType, serializes it into a JSON format, the result of the serialization will be written by the {@param writer}.
-
-
-
Method Detail
-
write
void write(MetadataType metadataType, com.google.gson.stream.JsonWriter writer) throws IOException
Given aMetadataType, serializes it into a JSON format, the result of the serialization will be written by the {@param writer}.- Parameters:
metadataType-MetadataTypeto doSerialize.writer-JsonWriterwhich will be used to write the serializedMetadataType- Throws:
IOException- if any error occurred when writing the JSON file.
-
-