public abstract class DynamicSkuPricingInterceptor extends Object implements org.springframework.web.context.request.WebRequestInterceptor
Interceptor version of the DynamicSkuPricingFilter. If you are using Broadleaf in a Servlet web application
then you should instead be using the DefaultDynamicSkuPricingFilter.
This should be configured in your Spring context, but not the root one. So if you are running in a Portlet environment, then you should configure the interceptor in each individual portlet's context.
DynamicSkuPricingFilter}| Modifier and Type | Field and Description |
|---|---|
protected DynamicSkuPricingService |
skuPricingService |
| Constructor and Description |
|---|
DynamicSkuPricingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(org.springframework.web.context.request.WebRequest request,
Exception ex) |
DynamicSkuPricingService |
getDynamicSkuPricingService(org.springframework.web.context.request.WebRequest request) |
abstract HashMap |
getPricingConsiderations(org.springframework.web.context.request.WebRequest request)
Override to supply your own considerations to pass to the
SkuPricingConsiderationContext. |
void |
preHandle(org.springframework.web.context.request.WebRequest request) |
protected DynamicSkuPricingService skuPricingService
public void preHandle(org.springframework.web.context.request.WebRequest request)
throws Exception
preHandle in interface org.springframework.web.context.request.WebRequestInterceptorExceptionpublic DynamicSkuPricingService getDynamicSkuPricingService(org.springframework.web.context.request.WebRequest request)
public abstract HashMap getPricingConsiderations(org.springframework.web.context.request.WebRequest request)
SkuPricingConsiderationContext.request - DynamicSkuPricingService will evaluate when implementing custom pricingCopyright © 2013. All Rights Reserved.