Class GsonProvider
java.lang.Object
org.hibernate.search.backend.elasticsearch.gson.spi.GsonProvider
Centralizes the configuration of the Gson objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GsonProvider
com.google.gson.Gson
getGson()
com.google.gson.Gson
-
Method Details
-
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
-