public class AbstractCurrencyResolverExtensionHandler extends AbstractExtensionHandler implements CurrencyResolverExtensionHandler
BroadleafCurrencyResolver. A default, community implementation of Broadleaf will
support a single currency. If additional currencies are added (either by inclusion of enterprise
pricing modules) or with custom development, then an implementation of this handler can be
provided that allows the request to be associated with an alternate currency.enabled, priority| Constructor and Description |
|---|
AbstractCurrencyResolverExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionResultStatusType |
overrideCurrency(BroadleafCurrency desiredCurrency,
BroadleafCurrency defaultCurrency,
ExtensionResultHolder<BroadleafCurrency> currencyToUse)
Implementation sets the
ExtensionResultHolder value to the currency that should
be used. |
getPriority, isEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, isEnabledpublic AbstractCurrencyResolverExtensionHandler()
public ExtensionResultStatusType overrideCurrency(BroadleafCurrency desiredCurrency, BroadleafCurrency defaultCurrency, ExtensionResultHolder<BroadleafCurrency> currencyToUse)
ExtensionResultHolder value to the currency that should
be used. Setting to null will force the currency resolver to utilize the defaultCurrency.
Note that implementations run in AbstractExtensionHandler.getPriority() order and the last one wins. Also note
that prior implementations may have set the value on the ExtensionResultHolder. Later
implementations are free to alter but should do so with clear intent to override.overrideCurrency in interface CurrencyResolverExtensionHandlerdesiredCurrency - defaultCurrency - Copyright © 2015. All Rights Reserved.