Class ReducedJsonMetadataTypeLoader
- java.lang.Object
-
- org.mule.metadata.persistence.reduced.ReducedJsonMetadataTypeLoader
-
- All Implemented Interfaces:
TypeLoader,SerializedMetadataTypeLoader
public class ReducedJsonMetadataTypeLoader extends Object implements SerializedMetadataTypeLoader
SerializedMetadataTypeLoaderthat creates instances ofMetadataTypefrom JSON representations generated byReducedJsonMetadataTypeWriter.Instances of this class are not thread safe, so only one deserialization at a time can be made with each instance.
- Since:
- 1.2.0, 1.1.7
-
-
Constructor Summary
Constructors Constructor Description ReducedJsonMetadataTypeLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<MetadataType>load(com.google.gson.JsonElement jsonElement)Parses aMetadataTypeJSON representation and returns a newMetadataTypeinstance.Optional<MetadataType>load(String serialized)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mule.metadata.api.TypeLoader
load
-
-
-
-
Method Detail
-
load
public Optional<MetadataType> load(String serialized)
- Specified by:
loadin interfaceTypeLoader
-
load
public Optional<MetadataType> load(com.google.gson.JsonElement jsonElement)
Description copied from interface:SerializedMetadataTypeLoaderParses aMetadataTypeJSON representation and returns a newMetadataTypeinstance.- Specified by:
loadin interfaceSerializedMetadataTypeLoader- Parameters:
jsonElement-MetadataTypeJSON representation as aJsonElement- Returns:
Optionalvalue of aMetadataType
-
-