Skip to content

Commit 584a222

Browse files
committed
Improve Event Aggregator Javadoc
1 parent e32b440 commit 584a222

File tree

1 file changed

+6
-2
lines changed
  • event-aggregator/src/main/java/com/iluwatar/event/aggregator

1 file changed

+6
-2
lines changed

event-aggregator/src/main/java/com/iluwatar/event/aggregator/App.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55

66
/**
77
*
8-
* The Event Aggregator pattern channels events from multiple objects
9-
* into a single object to simplify registration for clients.
8+
* A system with lots of objects can lead to complexities when a client wants to subscribe
9+
* to events. The client has to find and register for each object individually, if each
10+
* object has multiple events then each event requires a separate subscription.
11+
* <p>
12+
* An Event Aggregator acts as a single source of events for many objects. It registers
13+
* for all the events of the many objects allowing clients to register with just the aggregator.
1014
* <p>
1115
* In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
1216
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events

0 commit comments

Comments
 (0)