org.wamblee.observer
Class DefaultObserverNotifier<ObservableType,Event>

java.lang.Object
  extended by org.wamblee.observer.DefaultObserverNotifier<ObservableType,Event>
All Implemented Interfaces:
ObserverNotifier<ObservableType,Event>

public class DefaultObserverNotifier<ObservableType,Event>
extends java.lang.Object
implements ObserverNotifier<ObservableType,Event>

Default observer notifier which calls org.wamblee.observer.Observer#send(ObservableType, Event) immediately.

Author:
Erik Brakkee

Constructor Summary
DefaultObserverNotifier()
          Constructs the notifier.
 
Method Summary
 void update(Observer<ObservableType,Event> aObserver, ObservableType aObservable, Event aEvent)
          Notifies an observer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultObserverNotifier

public DefaultObserverNotifier()
Constructs the notifier.

Method Detail

update

public void update(Observer<ObservableType,Event> aObserver,
                   ObservableType aObservable,
                   Event aEvent)
Description copied from interface: ObserverNotifier
Notifies an observer.

Specified by:
update in interface ObserverNotifier<ObservableType,Event>
Parameters:
aObserver - Observer to notify
aObservable - Observable at which the event occured.
aEvent - Event that occured.


Copyright © 2022. All Rights Reserved.