Class DefaultToStringConverter

java.lang.Object
com.broadleafcommerce.catalog.dataexport.converter.DefaultToStringConverter
All Implemented Interfaces:
ToStringConverter<Object>, org.springframework.core.convert.converter.Converter<Object,String>

public class DefaultToStringConverter extends Object implements ToStringConverter<Object>
Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • DefaultToStringConverter

      public DefaultToStringConverter(@NonNull @NonNull com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • convert

      public String convert(Object source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<Object,String>
    • getObjectMapper

      @NonNull protected @NonNull com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()