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 GsonProvidercreate(Supplier<com.google.gson.GsonBuilder> builderBaseSupplier, boolean logPrettyPrinting)com.google.gson.GsongetGson()com.google.gson.GsongetGsonNoSerializeNulls()JsonLogHelpergetLogHelper()
-
-
-
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()
-
-