org.broadleafcommerce.inventory.checkout.service.workflow
Class InventoryCompensatingCheckoutErrorHandler

java.lang.Object
  extended by org.broadleafcommerce.inventory.checkout.service.workflow.InventoryCompensatingCheckoutErrorHandler
All Implemented Interfaces:
org.broadleafcommerce.core.workflow.ErrorHandler, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

Deprecated. Use InventoryRollbackHandler

@Deprecated
@Component(value="blInventoryCompensatingCheckoutErrorHandler")
public class InventoryCompensatingCheckoutErrorHandler
extends Object
implements org.broadleafcommerce.core.workflow.ErrorHandler

This error handler essentially does exactly what the DefaultErrorHandler does, but it also attempts to detect whether inventory was decremented during the workflow. If so, it attampts to compensate for that inventory.

Author:
Kelly Tisdell

Field Summary
protected  InventoryService inventoryService
          Deprecated.  
 
Constructor Summary
InventoryCompensatingCheckoutErrorHandler()
          Deprecated.  
 
Method Summary
 void handleError(org.broadleafcommerce.core.workflow.ProcessContext context, Throwable th)
          Deprecated.  
 void setBeanName(String name)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inventoryService

protected InventoryService inventoryService
Deprecated. 
Constructor Detail

InventoryCompensatingCheckoutErrorHandler

public InventoryCompensatingCheckoutErrorHandler()
Deprecated. 
Method Detail

setBeanName

public void setBeanName(String name)
Deprecated. 
Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware

handleError

public void handleError(org.broadleafcommerce.core.workflow.ProcessContext context,
                        Throwable th)
                 throws org.broadleafcommerce.core.workflow.WorkflowException
Deprecated. 
Specified by:
handleError in interface org.broadleafcommerce.core.workflow.ErrorHandler
Throws:
org.broadleafcommerce.core.workflow.WorkflowException


Copyright © 2013. All Rights Reserved.