Exemple #1
0
 @Subscribe
 public void defined(Defined event) {
   bus.publish(
       new ProjectDefinedMessage(
           event.getId(),
           event.getTitle(),
           event.getOwner(),
           event.getHoursRequired(),
           event.getDefinedAt()));
 }
Exemple #2
0
 @Subscribe
 public void completed(Completed event) {
   bus.publish(new ProjectCompletedMessage(event.getId(), event.getCompletedAt()));
 }
Exemple #3
0
 @Subscribe
 public void abandoned(Abandoned event) {
   bus.publish(
       new ProjectAbandonedMessage(event.getId(), event.getAbandonedAt(), event.getReason()));
 }
Exemple #4
0
 @Subscribe
 public void started(Started event) {
   bus.publish(new ProjectStartedMessage(event.getId(), event.getStartedAt()));
 }