S
samir.vds
Hi,
I'm an ongoing student in Business Information Systems.
Anyway, right now I'm trying to understand a design technique called
the observer pattern.
Java provides for the observable object the class
java.util.oberservable. If I want to notifiy my observers about an
event I call the method notifyObservers() to notifiy all my observers.
So in example I've an observable object, which has 2 registered
observers. The observable object contains a couple of events, which
notifies my observers, but some of those events only want to notify one
of the observers. So what's smartest way to do that ?
regards Samir
btw: I hope you understand my problem, because it's very concrete and
also my English is not the best
I'm an ongoing student in Business Information Systems.
Anyway, right now I'm trying to understand a design technique called
the observer pattern.
Java provides for the observable object the class
java.util.oberservable. If I want to notifiy my observers about an
event I call the method notifyObservers() to notifiy all my observers.
So in example I've an observable object, which has 2 registered
observers. The observable object contains a couple of events, which
notifies my observers, but some of those events only want to notify one
of the observers. So what's smartest way to do that ?
regards Samir
btw: I hope you understand my problem, because it's very concrete and
also my English is not the best