public interface VetoableSubject extends Subject
VetoableSubject interface defines the API to register observers
interested in receiving notifications of pending subject changes.| Modifier and Type | Method and Description |
|---|---|
void |
notifyVetoObservers(java.lang.Object subject,
UpdateMessage change)
Notifies all observers that the state of the subject has changed.
|
attach, detach, notifyObserversvoid notifyVetoObservers(java.lang.Object subject,
UpdateMessage change)
throws ChangeVetoException
subject - the subject whose state has changed.change - what changed.ChangeVetoException - if any VetoObserver rejected the
pending change.