An event model is composed of the event source, the event itself, and the event listener: the event source, or provider, is the sender of the events; the event is the object that is sent; and the event listener, or event sink, is the receiver of the events.

An event model is a set of classes and interfaces that determine how these components relate to each other.

On the event source side, an event model determines how components may...

  • create and describe events,
  • trigger, or fire, events, or
  • distribute events to interested components.

On the listener side, an event model determines how components may...

  • subscribe to event sources,
  • react to events when received, or
  • remove the subscription to event sources when desired. 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2021-09-23
  • 2021-08-30
  • 2021-09-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-15
  • 2021-12-04
  • 2021-08-02
  • 2022-02-10
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案