public class CompositeCurrencyContextProvider extends Object implements CurrencyContextProvider<Object>
CurrencyContextProvider
sConstructor and Description |
---|
CompositeCurrencyContextProvider(List<CurrencyContextProvider<?>> currencyProviders) |
Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.money.CurrencyContext |
getContext(Object source,
ContextInfo contextInfo)
Get the currency from a source object
|
protected com.broadleafcommerce.money.CurrencyContext |
getDefaultCurrency() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canHandle
public CompositeCurrencyContextProvider(List<CurrencyContextProvider<?>> currencyProviders)
public com.broadleafcommerce.money.CurrencyContext getContext(@NonNull Object source, @Nullable ContextInfo contextInfo)
CurrencyContextProvider
getContext
in interface CurrencyContextProvider<Object>
source
- what to use in the consideration of a currencyCurrencyUnit
or null if not handled.protected com.broadleafcommerce.money.CurrencyContext getDefaultCurrency()
Copyright © 2021. All rights reserved.