org.infoglue.cms.util
Class ChangeNotificationController

java.lang.Object
  extended by org.infoglue.cms.util.ChangeNotificationController

public class ChangeNotificationController
extends java.lang.Object


Method Summary
 void addNotificationMessage(NotificationMessage notificationMessage)
          This method gets called when a new notification has come.
static ChangeNotificationController getInstance()
          A factory method that makes sure we operate on a singeton.
static void notifyListeners()
           
 void put(NotificationMessage notificationMessage)
           
 void registerListener(NotificationListener notificationListener)
          This method registers a new listener to be notified when a new notifiation is available.
 void unregisterListener(NotificationListener notificationListener)
          This method unregisters an existing listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

put

public void put(NotificationMessage notificationMessage)

notifyListeners

public static void notifyListeners()

getInstance

public static ChangeNotificationController getInstance()
A factory method that makes sure we operate on a singeton. We assign a couple of standard listeners like a logger and a transactionHistoryLogger.


registerListener

public void registerListener(NotificationListener notificationListener)
This method registers a new listener to be notified when a new notifiation is available.


unregisterListener

public void unregisterListener(NotificationListener notificationListener)
This method unregisters an existing listener.


addNotificationMessage

public void addNotificationMessage(NotificationMessage notificationMessage)
This method gets called when a new notification has come. It then iterates through the listeners and notifies them.



Copyright © 2005 InfoGlue.org All Rights Reserved.