com.md5importer.interfaces
Interface IObservable

All Known Subinterfaces:
IMD5Anim
All Known Implementing Classes:
AbstractObservable, MD5Anim

public interface IObservable

IObservable defines the interface of a mutable data unit that can be monitored by other observers for notifications when the mutable data is modified.

IObservable provides the external invocation method to notify the registered observers when the mutable state is modified. This notification is sent sequentially to all registered observers.

IObservable provides thread safety on all the methods by delegating thread safety to the underlying thread safe data structures.


Method Summary
 void notifyUpdate()
          Notify the registered observers for update.
 void register(IObserver observer)
          Register the given observer to be notified when the state changes.
 void unregister(IObserver observer)
          Unregister the given observer to stop notifying to it.
 

Method Detail

notifyUpdate

void notifyUpdate()
Notify the registered observers for update.


register

void register(IObserver observer)
Register the given observer to be notified when the state changes.

Parameters:
observer - The IObserver to be registered.

unregister

void unregister(IObserver observer)
Unregister the given observer to stop notifying to it.

Parameters:
observer - The IObserver to be unregistered.