org.lsst.ccs.utilities.dispatch
Class SynchronousObservable<P>

java.lang.Object
  extended by org.lsst.ccs.utilities.dispatch.SynchronousObservable<P>

public class SynchronousObservable<P>
extends Object

An Observable with protocol control at compile time. The update are processed in sequence.

Author:
bernard Amade

Field Summary
protected  CopyOnWriteArrayList<SynchronousObserver<P>> list
           
 
Constructor Summary
SynchronousObservable()
           
 
Method Summary
 void addObserver(SynchronousObserver<P> observer)
           
 void notifyObservers(P protocol)
          do not need a call to setChanged: observers are immediately notified.
 void removeObserver(SynchronousObserver<P> observer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected CopyOnWriteArrayList<SynchronousObserver<P>> list
Constructor Detail

SynchronousObservable

public SynchronousObservable()
Method Detail

addObserver

public void addObserver(SynchronousObserver<P> observer)

removeObserver

public void removeObserver(SynchronousObserver<P> observer)

notifyObservers

public void notifyObservers(P protocol)
do not need a call to setChanged: observers are immediately notified.

Parameters:
protocol -


Copyright © 2012 LSST. All Rights Reserved.