public interface OrderProcessStrategy<O extends Order<I>,I extends OrderItem>
Order
. See OrderService#save(Order, String)
& OrderService.update(OrderItem, String)
ChangeListener
s on hooking to OrderService
; which is a ChangeGenerator
The only difference is ChangeListener
are only fired after the change of an event; so while we can substitute a PostOrderProcessStrategy
in DefaultOrderService
we cannot substitute a PreOrderProcessStrategy
; hence this explicit alternate mechanism will be preserved or deprecated if the ChangeListener
allows more flexivbility in the future.Modifier and Type | Method and Description |
---|---|
I |
onSave(I orderItem) |
<T extends O> |
onSave(T order) |
<T extends O> T onSave(T order) throws OrderPlacementException
OrderPlacementException
I onSave(I orderItem) throws OrderPlacementException
OrderPlacementException
Copyright © 2018. All rights reserved.