Improve Event Aggregator Javadoc
This commit is contained in:
parent
e32b440a38
commit
584a22238d
@ -5,8 +5,12 @@ import java.util.List;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* The Event Aggregator pattern channels events from multiple objects
|
* A system with lots of objects can lead to complexities when a client wants to subscribe
|
||||||
* into a single object to simplify registration for clients.
|
* to events. The client has to find and register for each object individually, if each
|
||||||
|
* object has multiple events then each event requires a separate subscription.
|
||||||
|
* <p>
|
||||||
|
* An Event Aggregator acts as a single source of events for many objects. It registers
|
||||||
|
* for all the events of the many objects allowing clients to register with just the aggregator.
|
||||||
* <p>
|
* <p>
|
||||||
* In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
|
* In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
|
||||||
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events
|
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user