Soldato
A quick question about this pattern can something be both the subject and an observer itself? If so is this advisable?
Imagine the scenario:
You have a user interface with a load of text fields, these text fields are populated by the UI's associated file input stream. This input stream has a list of sections (observers of the file).
If an update happens to the UI both the file and it's associated sections will need to be updated.
So by my reckoning the input stream will be being observed by it's subscribed sections and it will also be observing the UI itself.
Imagine the scenario:
You have a user interface with a load of text fields, these text fields are populated by the UI's associated file input stream. This input stream has a list of sections (observers of the file).
If an update happens to the UI both the file and it's associated sections will need to be updated.
So by my reckoning the input stream will be being observed by it's subscribed sections and it will also be observing the UI itself.