All Packages Class Hierarchy This Package Previous Next Index
Interface JavaGroups.Subject
- public interface Subject
Class whose state is observed by Observers. An observer can attach itself to be notified
when the state of the subject is modified, and it can also detach itself. The subject keeps
a list of observers: whenever the state is modified in a subject, Notify should
be called. This will in turn call Update in all observers. The observers may then
access the subject to retrieve the state.
-
Attach(Observer)
-
-
Detach(Observer)
-
-
Notify()
-
Attach
public abstract void Attach(Observer o)
Detach
public abstract void Detach(Observer o)
Notify
public abstract void Notify()
All Packages Class Hierarchy This Package Previous Next Index