Class CustomerContextConverter

java.lang.Object
com.broadleafcommerce.promotion.offer.web.context.converter.CustomerContextConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext>

public class CustomerContextConverter extends Object implements org.springframework.core.convert.converter.Converter<String,com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext>
Author:
Chris Kittrell (ckittrell)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.fasterxml.jackson.databind.ObjectMapper
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomerContextConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext
    convert(String source)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen
  • Field Details

    • objectMapper

      protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • CustomerContextConverter

      public CustomerContextConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • convert

      public com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext convert(@NonNull String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext>