Observer

The observer pattern is generally used to inform one or more registered objects (observers, subscribers, objects) about selected actions of an observed object (observable, publisher, subject).

The time of activation is set to AFTER by default, i.e. the observable performs its own activity and then activates all registered observers in the specified order. This setting can be adjusted to before, after, both or even no activation at all via the parameter activate of Observable.

This implementation provides several ways to decorate a function or class as an observable or observer.

Which one is chosen depends sometimes on the task to be solved and sometimes just on personal preferences.


◄ prev

up

next ►

Legal Notice

Privacy Policy

Cookie Consent

Sphinx 7.2.6 & Alabaster 0.7.12

© Copyright 2020-, Martin Abel, eVation. All Rights Reserved.