Package org.jdbi.v3.gson2
Class Gson2Config
java.lang.Object
org.jdbi.v3.gson2.Gson2Config
- All Implemented Interfaces:
- JdbiConfig<Gson2Config>
Configuration class for Gson 2 integration.
- 
Constructor Details- 
Gson2Configpublic Gson2Config()
 
- 
- 
Method Details- 
setGsonSet theGsonto use for json conversion.- Parameters:
- gson- the mapper to use
- Returns:
- this
 
- 
getGsonpublic com.google.gson.Gson getGson()Returns theGsonobject used for json conversion.- Returns:
- the Gsonobject used for json conversion.
 
- 
createCopyDescription copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
- createCopyin interface- JdbiConfig<Gson2Config>
- Returns:
- a copy of this configuration object.
 
 
-