1.0.0

org.eclipse.soda.dk.notification
Class NotificationListeners

java.lang.Object
  extended by org.eclipse.soda.dk.notification.NotificationListeners
All Implemented Interfaces:
NotificationListener

public class NotificationListeners
extends java.lang.Object
implements NotificationListener

The MessageListeners class implements the MessageListener interface.

Version:
1.0.0
See Also:
ErrorListener, MessageListener

Constructor Summary
NotificationListeners(NotificationListener[] objects)
          Constructs an MessageListeners object using the input parameter(s).
NotificationListeners(NotificationListener currentObject, NotificationListener newObject)
          Constructs an MessageListeners object using the input parameter(s).
 
Method Summary
static NotificationListener add(NotificationListener currentObject, NotificationListener newObject)
          Perform the add method and return the NotificationListener result.
 NotificationListener[] getObjects()
          Gets the NotificationListener [] objects property value.
 void notificationReceived(java.lang.String topic, java.util.Dictionary data)
          This API will be called each time the TransportService receives a valid message.
protected  NotificationListener remove(NotificationListener removeHandler)
          Perform the remove method and return the NotificationListener result.
static NotificationListener remove(NotificationListener currentObject, NotificationListener removeObject)
          Perform the remove method and return the NotificationListener result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationListeners

public NotificationListeners(NotificationListener[] objects)
Constructs an MessageListeners object using the input parameter(s). MessageListener[]

Parameters:
objects - The objects (NotificationListener[]) parameter.
See Also:
NotificationListeners(NotificationListener,NotificationListener)

NotificationListeners

public NotificationListeners(NotificationListener currentObject,
                             NotificationListener newObject)
Constructs an MessageListeners object using the input parameter(s). MessageListener MessageListener

Parameters:
currentObject - The current object (NotificationListener) parameter.
newObject - The new object (NotificationListener) parameter.
See Also:
NotificationListeners(NotificationListener[])
Method Detail

add

public static NotificationListener add(NotificationListener currentObject,
                                       NotificationListener newObject)
Perform the add method and return the NotificationListener result. NotificationListener NotificationListener

Parameters:
currentObject - The current object (NotificationListener) parameter.
newObject - The new object (NotificationListener) parameter.
Returns:
Results of the add (NotificationListener) value.

remove

public static NotificationListener remove(NotificationListener currentObject,
                                          NotificationListener removeObject)
Perform the remove method and return the NotificationListener result. NotificationListener NotificationListener

Parameters:
currentObject - The current object (NotificationListener) parameter.
removeObject - The remove object (NotificationListener) parameter.
Returns:
Results of the remove (NotificationListener) value.
See Also:
remove(NotificationListener)

getObjects

public NotificationListener[] getObjects()
Gets the NotificationListener [] objects property value.

Returns:
Results of the get objects (NotificationListener[]) value.

notificationReceived

public void notificationReceived(java.lang.String topic,
                                 java.util.Dictionary data)
This API will be called each time the TransportService receives a valid message. Since other notifications are blocked until this method returns, implementors of this method should: The transport that received the message. The timestamp when the message was detected. The message received. The topic (String) parameter. The data (Object) parameter.

Specified by:
notificationReceived in interface NotificationListener
Parameters:
topic - The topic (String) parameter.
data - The data (Dictionary) parameter.

remove

protected NotificationListener remove(NotificationListener removeHandler)
Perform the remove method and return the NotificationListener result. NotificationListener

Parameters:
removeHandler - The remove handler (NotificationListener) parameter.
Returns:
Results of the remove (NotificationListener) value.
See Also:
remove(NotificationListener,NotificationListener)

1.0.0

Copyright (c) 1999, 2007 IBM