Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Jan Beernink and Arjan Tijms
About this chapter
Cite this chapter
Beernink, J., Tijms, A. (2019). Events. In: Pro CDI 2 in Java EE 8. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4363-3_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4363-3_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4362-6
Online ISBN: 978-1-4842-4363-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)