List of usage examples for com.google.gson TypeAdapterFactory interface-usage
From source file org.mule.runtime.extension.internal.persistence.metadata.ComponentResultTypeAdapterFactory.java
/** * {@link TypeAdapterFactory} * * @since 1.0 */ public final class ComponentResultTypeAdapterFactory implements TypeAdapterFactory {
From source file org.mule.runtime.extension.internal.persistence.metadata.FailureCodeTypeAdapterFactory.java
public class FailureCodeTypeAdapterFactory implements TypeAdapterFactory { @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) { Class<T> rawType = (Class<T>) type.getRawType(); if (rawType.equals(FailureCode.class))
From source file org.mule.runtime.extension.internal.persistence.ModelPropertyMapTypeAdapterFactory.java
/**
* Creates a {@link ModelPropertyMapTypeAdapter} when GSON requires a serialization of deserialization of
* {@code Map<Class<? extends ModelProperty>, ModelProperty>} type.
*
* @since 1.0
*/
From source file org.mule.runtime.extension.internal.persistence.OperationModelTypeAdapterFactory.java
/** * A {@link TypeAdapterFactory} which yields instances of {@link OperationModelTypeAdapter} * * @since 1.0 */ public class OperationModelTypeAdapterFactory implements TypeAdapterFactory {
From source file org.mule.runtime.extension.internal.persistence.RestrictiveTypeAdapterFactory.java
/**
* {@link TypeAdapterFactory} implementation, which creates {@link TypeAdapter}s that only for a class of type {@link S},
* fixes the serialization and deserialization to a unique class {@link I}.
*
* @since 1.0
*/
From source file org.myeslib.jdbi.storage.helpers.gson.RuntimeTypeAdapterFactory.java
/**
* Adapts values whose runtime type may differ from their declaration type. This
* is necessary when a field's type is not the same type that GSON should create
* when deserializing that field. For example, consider these types:
* <pre> {@code
* abstract class Shape {
From source file org.myeslib.stack1.infra.helpers.gson.polymorphic.RuntimeTypeAdapterFactory.java
/**
* Adapts values whose runtime type may differ from their declaration type. This
* is necessary when a field's type is not the same type that GSON should create
* when deserializing that field. For example, consider these types:
* <pre> {@code
* abstract class Shape {
From source file org.objectpocket.gson.CustomTypeAdapterFactory.java
/**
*
* This is where references with the annotation {@link Entity} are handled to
* insert as references into JSON strings and not as complete objects.
*
* @author Edmund Klaus
From source file org.openhab.binding.mqtt.homeassistant.internal.ChannelConfigurationTypeAdapterFactory.java
/**
* This a Gson type adapter factory.
*
* It will create a type adapter for every class derived from {@link BaseChannelConfiguration} and ensures,
* that abbreviated names are replaces with their long versions during the read.
*
From source file org.openhab.binding.mqtt.internal.homeassistant.ChannelConfigurationTypeAdapterFactory.java
/**
* This a Gson type adapter factory.
*
* It will create a type adapter for every class derived from {@link BaseChannelConfiguration} and ensures,
* that abbreviated names are replaces with their long versions during the read.
*