O'Reilly logo

Implementing Domain-Driven Design by Vaughn Vernon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Publishing the NotificationLog

Recall that there are two kinds of notification logs, a current log and an archived log. Thus, the NotificationService interface provides a query method for each type:

public class NotificationService {     @Transactional(readOnly=true)     public NotificationLog currentNotificationLog() {         EventStore eventStore = EventStore.instance();         return this.findNotificationLog(                 this.calculateCurrentNotificationLogId(eventStore),                 eventStore);     }     @Transactional(readOnly=true)     public NotificationLog notificationLog(String aNotificationLogId) {         EventStore eventStore = EventStore.instance();         return this.findNotificationLog( ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required