Class OnlyOneFieldTypeAdapterFactory
- java.lang.Object
-
- org.mule.metadata.persistence.type.adapter.OnlyOneFieldTypeAdapterFactory
-
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
public final class OnlyOneFieldTypeAdapterFactory extends Object implements com.google.gson.TypeAdapterFactory
TypeAdapterFactoryimplementation which creates instances ofOnlyOneFieldTypeAdapterwhen a new object is required to be serialized and that type is a registeredTypeAnnotation.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description OnlyOneFieldTypeAdapterFactory(Class<? extends TypeAnnotation>... typeAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> com.google.gson.TypeAdapter<T>create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
-
-
-
Constructor Detail
-
OnlyOneFieldTypeAdapterFactory
@SafeVarargs public OnlyOneFieldTypeAdapterFactory(Class<? extends TypeAnnotation>... typeAnnotations)
-
-