This involves sources, listeners and observers and is an interesting multi-tier model of linkage/communication |
One can (in some cases) merge observer and listener but not the listener and source |
Registration involves sending an object name -- termed the callback object -- from the listener to the source. |
When event occurs, the source invokes a particular (event dependent) method of the callback object |
Events can be distinguished by using different callback methods (demultiplexing) or by inspecting the argument of a more generic method. |
Sources and Listeners use a "controlled syntax" but there are no special interfaces or methods for linkage of observers and listeners as usually(often) these are combined. |