Package org.oddjob.web.gson.plugin
Class SerializableDesignFactoryGson
java.lang.Object
org.oddjob.web.gson.plugin.SerializableDesignFactoryGson
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory,GsonConfigurator
public class SerializableDesignFactoryGson
extends Object
implements com.google.gson.TypeAdapterFactory, GsonConfigurator
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SerializableDesignFactoryGson
public SerializableDesignFactoryGson()
-
-
Method Details
-
configure
public com.google.gson.GsonBuilder configure(com.google.gson.GsonBuilder gsonBuilder) Description copied from interface:GsonConfiguratorConfigure a GsonBuilder by adding Type Adapters etc. to it.- Specified by:
configurein interfaceGsonConfigurator- Parameters:
gsonBuilder- The Builder- Returns:
- The same Builder for fluidity.
-
create
public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type) - Specified by:
createin interfacecom.google.gson.TypeAdapterFactory
-