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