Actions

Description

JObservable

From Joomla! Documentation

JObservable is an abstract class which allows you to simply implement a Observer/Observable pattern within an application.

In order to avoid strong dependencies between objects, which reduces reusability of the individual classes, it is common to use the Observer/Observable design pattern. The JObservable class can be used where one or more objects need to be informed when the state of another object changes. Objects derived from the JObserver class can register themselves with an object derived from the JObservable class and will be informed as required.