Jump to content

Implicit invocation

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 89.223.10.198 (talk) at 14:51, 14 January 2020 (See also). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Implicit invocation is a term used by some authors for a style of software architecture in which a system is structured around event handling, using a form of callback. It is closely related to inversion of control and what is known informally as the Hollywood principle.

The idea behind implicit invocation is that instead of invoking a procedure directly, a component can announce (or broadcast) one or more events. Other components in the system can register an interest in an event by associating a procedure with the event. When the event is announced the system itself invokes all of the procedures that have been registered for the event. Thus an event announcement implicitly causes the invocation of procedures in other modules.

— "An Introduction to Software Architecture", in 40px, 30px, David Garlan and Mary Shaw

Implicit invocation is the core technique behind the observer pattern.[citation needed]

See also