java observable example code
Example 1: java observable to observer
setChanged();
notifyObservers(object_to_send_to_observer);
Example 2: observer pattern java
class Signal extends Observable {
void setData(byte[] lbData){
setChanged(); // Positionne son indicateur de changement
notifyObservers(); // (1) notification
}
}