Class OfferCurrencyContextInfoCustomizer
java.lang.Object
com.broadleafcommerce.promotion.offer.service.context.OfferCurrencyContextInfoCustomizer
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer
,org.springframework.core.Ordered
public class OfferCurrencyContextInfoCustomizer
extends Object
implements com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer
This component attempts to populate the
ContextInfo.getDefaultCurrency()
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionOfferCurrencyContextInfoCustomizer
(com.broadleafcommerce.common.extension.data.DataRouteSupporting route) -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) protected Currency
getCurrencyFromLocale
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
setCurrencyHolder
(com.broadleafcommerce.money.jackson.CurrencyHolder currencyHolder) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer
getOrder
-
Constructor Details
-
OfferCurrencyContextInfoCustomizer
public OfferCurrencyContextInfoCustomizer(com.broadleafcommerce.common.extension.data.DataRouteSupporting route)
-
-
Method Details
-
customize
public void customize(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) - Specified by:
customize
in interfacecom.broadleafcommerce.data.tracking.core.context.ContextInfoCustomizer
-
getCurrencyFromLocale
@Nullable protected Currency getCurrencyFromLocale(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
setCurrencyHolder
@Autowired public void setCurrencyHolder(com.broadleafcommerce.money.jackson.CurrencyHolder currencyHolder)
-