Java Reference
In-Depth Information
■
Scheduler
, which periodically calls
DomainRestaurantNotificationService
■
DomainRestaurantNotificationService
, the domain model-based imple-
mentation of the
RestaurantNotificationService
■
TransactionInterceptor
, the Spring
AOP
interceptor that manages transac-
tions and the Hibernate
Session
or
JDO
PersistenceManager
■
Order
, which represents an order and defines a
noteSent()
method that
updates the order with the notification details
■
RestaurantNotificationGateway
, which sends the order to the restaurant
■
NotificationDetails
, which contains a
messageId
and
timeSent
OrderRepository
, which uses the
JDO
or Hibernate query
API
s to find the
orders that are waiting to be sent to the restaurants.
■
Scheduler
TransactionInterceptor
Domain
RestaurantNotification
Service
<<interface>>
RestaurantNotification
Service
sendOrders()
void sendOrders()
<<interface>>
RestaurantGateway
<<interface>>
OrderRepository
sendOrder(Order)
List findOrdersToSend()
Order
JDO
OrderRepository
Hibernate
OrderRepository
noteSent(messageId, timeSent)
javax.jdo
org.hibernate
Figure 12.6
Domain model version of the business logic for the Send Orders to Restaurant use case
Search WWH ::
Custom Search