Abstract
A program may need to respond to change events and input events.. . The use of observers is a general-purpose technique for managing a program’s responses to events. An object can maintain a list of observers and notify them when a notable event occurs. This chapter introduces the observer pattern, which is the preferred way to incorporate observers into your code.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Edward Sciore
About this chapter
Cite this chapter
Sciore, E. (2019). Observers. In: Java Program Design. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4143-1_10
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4143-1_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4142-4
Online ISBN: 978-1-4842-4143-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)