Class PriceContextConverter

java.lang.Object
com.broadleafcommerce.pricing.web.context.PriceContextConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,com.broadleafcommerce.pricing.client.domain.context.PriceContext>

public class PriceContextConverter extends Object implements org.springframework.core.convert.converter.Converter<String,com.broadleafcommerce.pricing.client.domain.context.PriceContext>
Author:
Chad Harchar (charchar)
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.pricing.client.domain.context.PriceContext
    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

    • PriceContextConverter

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

    • convert

      public com.broadleafcommerce.pricing.client.domain.context.PriceContext convert(@NonNull String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,com.broadleafcommerce.pricing.client.domain.context.PriceContext>