Class CompositeCurrencyContextProvider

java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.money.CompositeCurrencyContextProvider
All Implemented Interfaces:
CurrencyContextProvider<Object>

public class CompositeCurrencyContextProvider extends Object implements CurrencyContextProvider<Object>
A currency resolver that allows for a configurable set of CurrencyContextProviders
Author:
Phillip Verheyden (phillipuniverse)
  • Constructor Details

  • Method Details

    • getContext

      public com.broadleafcommerce.money.CurrencyContext getContext(@NonNull Object source, @Nullable ContextInfo contextInfo)
      Description copied from interface: CurrencyContextProvider
      Get the currency from a source object
      Specified by:
      getContext in interface CurrencyContextProvider<Object>
      Parameters:
      source - what to use in the consideration of a currency
      Returns:
      a CurrencyUnit or null if not handled.
    • getDefaultCurrency

      protected com.broadleafcommerce.money.CurrencyContext getDefaultCurrency()