File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
event-aggregator/src/main/java/com/iluwatar/event/aggregator Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments