Although the pattern Observer is implemented natively in Java, sometimes we need to make an event management that suits better our needs.
The problem of event handling is very simple: We have an object that will be changing its state. Without touching its code, we should be able to “hook” to other objects that are pending status changes and act accordingly. This “hook” must be turned on and off dynamically at runtime.
Click here to read more.. »