com.elasticpath.service.shoppingcart.impl
Class AbstractCheckoutEventHandlerImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.shoppingcart.impl.AbstractCheckoutEventHandlerImpl
All Implemented Interfaces:
EpService, CheckoutEventHandler
Direct Known Subclasses:
NullCheckoutEventHandlerImpl

public abstract class AbstractCheckoutEventHandlerImpl
extends AbstractEpServiceImpl
implements CheckoutEventHandler

Abstract implementation of a CheckoutEventHandler. This serves as a convenience class so that subclasses can only implement the events of interest.


Constructor Summary
AbstractCheckoutEventHandlerImpl()
           
 
Method Summary
 void postCheckout(ShoppingCart shoppingCart, OrderPayment orderPayment, Order completedOrder)
          This event occurs after a checkout process has completed.
 void preCheckout(ShoppingCart shoppingCart, OrderPayment orderPayment)
          This event occurs before any action is taken as part of the checkout process.
 void preCheckoutOrderPersist(ShoppingCart shoppingCart, OrderPayment orderPayment, Order completedOrder)
          This event occurs after a checkout has been processed but before the order has been persisted.
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

AbstractCheckoutEventHandlerImpl

public AbstractCheckoutEventHandlerImpl()
Method Detail

postCheckout

public void postCheckout(ShoppingCart shoppingCart,
                         OrderPayment orderPayment,
                         Order completedOrder)
This event occurs after a checkout process has completed.

Specified by:
postCheckout in interface CheckoutEventHandler
Parameters:
shoppingCart - the shopping cart being checked out
orderPayment - information about the method of payment
completedOrder - the order object resulting from the checkout

preCheckout

public void preCheckout(ShoppingCart shoppingCart,
                        OrderPayment orderPayment)
This event occurs before any action is taken as part of the checkout process.

Specified by:
preCheckout in interface CheckoutEventHandler
Parameters:
shoppingCart - the shopping cart being checked out
orderPayment - information about the method of payment

preCheckoutOrderPersist

public void preCheckoutOrderPersist(ShoppingCart shoppingCart,
                                    OrderPayment orderPayment,
                                    Order completedOrder)
This event occurs after a checkout has been processed but before the order has been persisted. This event occurs between preCheckout and postCheckout.

Specified by:
preCheckoutOrderPersist in interface CheckoutEventHandler
Parameters:
shoppingCart - the shopping cart being checked out
orderPayment - information about the method of payment
completedOrder - the order object resulting from the checkout