org.nakedobjects.object
Interface UpdateNotifier

All Known Implementing Classes:
NullUpdateNotifier, UDPUpdateNotifier, ViewNotifier, ViewUpdateNotifier

public interface UpdateNotifier


Method Summary
 void broadcastAdd(NakedCollection collection, NakedObject element)
          Indicates that an element has been added to a collection
 void broadcastObject(NakedObject object)
          Indicates that a specific object has been changed
 void broadcastRemove(NakedCollection collection, NakedObject element)
          Indicates that an element has been removed from a collection
 void init()
          Called when the UpdateNotifier is installed.
 void shutdown()
          Called when the UpdateNotifier is about to be shutdown.
 

Method Detail

broadcastAdd

public void broadcastAdd(NakedCollection collection,
                         NakedObject element)
Indicates that an element has been added to a collection

Parameters:
collection - the collection being added to
element - the object being added

broadcastObject

public void broadcastObject(NakedObject object)
Indicates that a specific object has been changed

Parameters:
object -

broadcastRemove

public void broadcastRemove(NakedCollection collection,
                            NakedObject element)
Indicates that an element has been removed from a collection

Parameters:
collection - the collection being removed from
element - the object being removed

init

public void init()
Called when the UpdateNotifier is installed. Should set up any required network connections and resources.


shutdown

public void shutdown()
Called when the UpdateNotifier is about to be shutdown. All connections and resources should be released.