public class DefaultDynamicSkuPricingInvocationHandler extends Object implements InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected Sku |
delegate |
protected static ConcurrentHashMap<String,Field> |
FIELD_CACHE |
protected Money |
retailPrice |
protected Money |
salePrice |
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
protected Field |
getSingleField(Class<?> clazz,
String fieldName) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
reset() |
Sku |
unwrap() |
protected Sku delegate
protected Money retailPrice
protected Money salePrice
protected static final ConcurrentHashMap<String,Field> FIELD_CACHE
public DefaultDynamicSkuPricingInvocationHandler(Sku sku)
public DefaultDynamicSkuPricingInvocationHandler(Sku sku, BigDecimal salePriceOverride)
sku - salePriceOverride - public DefaultDynamicSkuPricingInvocationHandler(BigDecimal salePriceOverride)
sku - salePriceOverride - public DefaultDynamicSkuPricingInvocationHandler(Sku sku, Money adjustments)
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 retailPriceprotected Field getSingleField(Class<?> clazz, String fieldName) throws IllegalStateException
IllegalStateExceptionpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic Sku unwrap()
public void reset()
Copyright © 2017. All rights reserved.