Class DefaultDynamicSkuPricingInvocationHandler
java.lang.Object
org.broadleafcommerce.core.catalog.service.dynamic.DefaultDynamicSkuPricingInvocationHandler
- All Implemented Interfaces:
InvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Skuprotected static final ConcurrentHashMap<String,Field> protected org.broadleafcommerce.common.money.Moneyprotected org.broadleafcommerce.common.money.Money -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDynamicSkuPricingInvocationHandler(BigDecimal salePriceOverride) This is used with SkuBundleItem to allow the bundle override price.DefaultDynamicSkuPricingInvocationHandler(Sku sku, BigDecimal salePriceOverride) This is used with SkuBundleItem to allow the bundle override price.DefaultDynamicSkuPricingInvocationHandler(Sku sku, org.broadleafcommerce.common.money.Money adjustments) Used to add ProductOptionValue price adjustments to the proxy Sku -
Method Summary
-
Field Details
-
FIELD_CACHE
-
delegate
-
retailPrice
protected org.broadleafcommerce.common.money.Money retailPrice -
salePrice
protected org.broadleafcommerce.common.money.Money salePrice
-
-
Constructor Details
-
DefaultDynamicSkuPricingInvocationHandler
-
DefaultDynamicSkuPricingInvocationHandler
This is used with SkuBundleItem to allow the bundle override price.- Parameters:
sku-salePriceOverride-
-
DefaultDynamicSkuPricingInvocationHandler
This is used with SkuBundleItem to allow the bundle override price.- Parameters:
salePriceOverride-
-
DefaultDynamicSkuPricingInvocationHandler
public DefaultDynamicSkuPricingInvocationHandler(Sku sku, org.broadleafcommerce.common.money.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 Details
-
getSingleField
- Throws:
IllegalStateException
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
unwrap
-
reset
public void reset()
-