com.sun.j2ee.blueprints.petstore.control.web
Class ModelUpdateNotifier

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.petstore.control.web.ModelUpdateNotifier
Direct Known Subclasses:
ModelManager

public class ModelUpdateNotifier
extends java.lang.Object

This class is responsible for providing methods to add objects as listeners for a particular model update event and for notifying the listeners when the event actually occurs.


Constructor Summary
ModelUpdateNotifier()
           
 
Method Summary
 void addListener(java.lang.String modelType, java.lang.Object listener)
           
 void notifyListeners(java.util.Collection updatedModelList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelUpdateNotifier

public ModelUpdateNotifier()
Method Detail

notifyListeners

public void notifyListeners(java.util.Collection updatedModelList)

addListener

public void addListener(java.lang.String modelType,
                        java.lang.Object listener)


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.