Class IPublisherGlobal
java.lang.Object
rs.edu.raf.dsw.rudok.app.observer.IObserver
rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
- Direct Known Subclasses:
IPublisher
public class IPublisherGlobal extends IObserver
For classes that want to listen to all instances of
IPublisher
for a specific type of IMessage
.-
Constructor Summary
Constructors Constructor Description IPublisherGlobal()
-
Method Summary
Modifier and Type Method Description static void
addObserverGlobal(Class type, IObserver observer)
Adds a new global observer.static Set<IObserver>
getObserversGlobal(Class type)
Returns the global observers for the given message type.static void
removeObserverGlobal(Class type, IObserver observer)
Removes a global observer.Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IObserver
addPublisher, getPublishers, receive, removePublisher, setPublishers
-
Constructor Details
-
IPublisherGlobal
public IPublisherGlobal()
-
-
Method Details