org.broadleafcommerce.core.catalog.service.dynamic
Class DefaultDynamicSkuPricingInvocationHandler

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.service.dynamic.DefaultDynamicSkuPricingInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class DefaultDynamicSkuPricingInvocationHandler
extends Object
implements InvocationHandler


Constructor Summary
DefaultDynamicSkuPricingInvocationHandler(BigDecimal salePriceOverride)
          This is used with SkuBundleItem to allow the bundle override price.
DefaultDynamicSkuPricingInvocationHandler(Sku sku)
           
DefaultDynamicSkuPricingInvocationHandler(Sku sku, BigDecimal salePriceOverride)
          This is used with SkuBundleItem to allow the bundle override price.
DefaultDynamicSkuPricingInvocationHandler(Sku sku, Money adjustments)
          Used to add ProductOptionValue price adjustments to the proxy Sku
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDynamicSkuPricingInvocationHandler

public DefaultDynamicSkuPricingInvocationHandler(Sku sku)

DefaultDynamicSkuPricingInvocationHandler

public DefaultDynamicSkuPricingInvocationHandler(Sku sku,
                                                 BigDecimal salePriceOverride)
This is used with SkuBundleItem to allow the bundle override price.

Parameters:
sku -
salePriceOverride -

DefaultDynamicSkuPricingInvocationHandler

public DefaultDynamicSkuPricingInvocationHandler(BigDecimal salePriceOverride)
This is used with SkuBundleItem to allow the bundle override price.

Parameters:
sku -
salePriceOverride -

DefaultDynamicSkuPricingInvocationHandler

public DefaultDynamicSkuPricingInvocationHandler(Sku sku,
                                                 Money adjustments)
Used to add ProductOptionValue price adjustments to the proxy Sku

Parameters:
sku -
adjustments - - the sum total of the ProductOptionValue price adjustments. If null, this functions the same as the default constructor. This value is added to both the salePrice and retailPrice
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

reset

public void reset()


Copyright © 2013. All Rights Reserved.