net.sf.taverna.t2.lang.observer
Interface Observable<Message>

Type Parameters:
Message -
All Known Implementing Classes:
BeanableFactoryRegistry, ModelMap, MultiCaster, ObserverTest.MyObservable, SPIRegistry

public interface Observable<Message>

Implements this if you want to notify other classes about changes

Author:
Ian Dunlop, Stian Soiland

Method Summary
 void addObserver(Observer<Message> observer)
          Register an Observer
 java.util.List<Observer<Message>> getObservers()
          A list of all the currently registered Observers
 void removeObserver(Observer<Message> observer)
          Remove a class who is currently observing
 

Method Detail

addObserver

void addObserver(Observer<Message> observer)
Register an Observer

Parameters:
observer - the class who wants notified of changes

removeObserver

void removeObserver(Observer<Message> observer)
Remove a class who is currently observing

Parameters:
observer - the class who no longer wants notified

getObservers

java.util.List<Observer<Message>> getObservers()
A list of all the currently registered Observers

Returns: