Browse files

Removed deprecated calls from QuickStart

  • Loading branch information...
1 parent 38d8761 commit 6f05be0f1b40efae44e2590d18dc31e6bf4cc833 @abuijze abuijze committed Apr 4, 2014
@@ -68,8 +68,8 @@ public static void main(String[] args) {
// create the event bus and subscribe two listeners
// notice how the registration process itself is unaware of clustering
EventBus eventBus = new ClusteringEventBus(clusterSelector);
- AnnotationEventListenerAdapter.subscribe(new ThreadPrintingEventListener(), eventBus);
- AnnotationEventListenerAdapter.subscribe(new AnotherThreadPrintingEventListener(), eventBus);
+ eventBus.subscribe(new AnnotationEventListenerAdapter(new ThreadPrintingEventListener()));
+ eventBus.subscribe(new AnnotationEventListenerAdapter(new AnotherThreadPrintingEventListener()));
// publish an event
eventBus.publish(asEventMessage(new ToDoItemCompletedEvent("todo1")));

0 comments on commit 6f05be0

Please sign in to comment.