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 Original file line number Diff line number Diff line change 5
5
6
6
/**
7
7
*
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.
10
14
* <p>
11
15
* In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
12
16
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events
You can’t perform that action at this time.
0 commit comments