The handler methods implement the following transactions steps:
Synchronize on the
Order
object.Execute logic for modifying the
Order
object.For example, the
CartModifierFormHandler
subclass has ahandleAddItemToOrder
method that executes the logic of adding an item to an order.Call the
OrderManager
object’supdateOrder
method to save the order data to the repository.End the synchronization.