public interface VetoableSubject extends Subject
VetoableSubject interface defines the API to register observers
interested in receiving notifications of pending subject changes.
Classes that want to veto a pending Subject change should
attach an VetoObserver to a VetoableSubject in
order to approve the change.oracle.ide.VetoableObserver,
oracle.ide.VetoableMessage| 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.