Grokking Spring Boot
Vote

0% completed

​

Application Events

Booking booking = bookings.save(new Booking(seat, customer, PRICE_IN_CENTS)); notifier.bookingConfirmed(booking); seatMap.markTaken(seat); salesReport.add(booking); return new BookingResponse(booking.getId(), request.eventId(), seat.getLabel(), "CONFIRMED");

These lines end a version of BookingService.book that calls every interested class directly. The first line does the booking. The next three tell other parts of the service that a booking happened, and each of them is a constructor parameter of BookingService

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content