15.1. Generic event model

Table 15.1 gives a review of the major roles in a generic event model. Figure 15.1 shows them in a schematic way.

Figure 15.1. Characteristics of the event source, object and consumer in a generic event model.

Table 15.1. Description of different roles in a generic event model
RoleDescription
Event sourceThe object which potentially causes an event to happen – an event can be any special occurrence. The event source provides a way for interested event consumers to register their interest with this event source. The event source typically keeps a list of registered event consumers, so that when the event occurs the registered ...

Get From Java to C#: A Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.