Update README.md

This commit is contained in:
Petrutiu Mihai
2016-07-13 20:08:58 +03:00
committed by Petrutiu Mihai
parent a055b3267b
commit d0aa28478f

View File

@@ -254,10 +254,10 @@ usually by calling one of their methods.
### b. When to use Observer pattern ### b. When to use Observer pattern
### c. Actors ### c. Actors
* Subject -> Interface/Abstract Notifies interested observers when an event occurs * Subject -> Interface/Abstract Notifies interested observers when an event occurs. Allows Observer to subscribe/unsubscribe.
* Concrete Subject -> Implementation of Subject * Concrete Subject -> Implementation of Subject.
* Observer -> Interface/Abstract class -> Registers to a subject, to be notified when a specific event happens * Observer -> Interface/Abstract class -> Defines a method to be called when the Subject wants to notify observers
* Concrete Observer -> Implementation of the observer * Concrete Observer -> Implementation of the observer. Registers to a subject, to be notified when a specific event happens
### d. Pitfalls ### d. Pitfalls
* Lapsed Listener problem * Lapsed Listener problem