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 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

      public JsonLogHelper getLogHelper()