The observer pattern is a common design pattern used in many applications. It allows an object to notify any number of other objects of changes or other events, without a strong coupling between the subject and the observer. Consider the alternative, where the observee needs to individually call each observer separately. This does not scale well to a large number of observers and strongly couples the subject that is being observed to the observers.
CDI supports the observer pattern through events. Events can be fired from any ...