Class GsonProvider
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.gson.spi.GsonProvider
-
public final class GsonProvider extends Object
Centralizes the configuration of the Gson objects.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GsonProvider
create(Supplier<com.google.gson.GsonBuilder> builderBaseSupplier, boolean logPrettyPrinting)
com.google.gson.Gson
getGson()
com.google.gson.Gson
getGsonNoSerializeNulls()
JsonLogHelper
getLogHelper()
-
-
-
Method Detail
-
create
public static GsonProvider create(Supplier<com.google.gson.GsonBuilder> builderBaseSupplier, boolean logPrettyPrinting)
-
getGson
public com.google.gson.Gson getGson()
-
getGsonNoSerializeNulls
public com.google.gson.Gson getGsonNoSerializeNulls()
- Returns:
- Same as
getGson()
, but with null serialization turned off.
-
getLogHelper
public JsonLogHelper getLogHelper()
-
-