mx4j.connector.rmi
Class RemoteNotificationListenerSupport

java.lang.Object
  |
  +--mx4j.connector.rmi.RemoteNotificationListenerSupport
All Implemented Interfaces:
java.util.EventListener, NotificationListener, java.io.Serializable
Direct Known Subclasses:
IIOPRemoteNotificationListenerSupport, JRMPRemoteNotificationListenerSupport

public abstract class RemoteNotificationListenerSupport
extends java.lang.Object
implements NotificationListener, java.io.Serializable

This class is serialized from client to the server, and forwards calls to remote listener.

It shadows the fact that the listener is an RMI remote object.

See Also:
Serialized Form

Constructor Summary
RemoteNotificationListenerSupport(javax.management.NotificationListener clientListener)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
protected abstract  void export()
           
protected  mx4j.connector.rmi.RemoteNotificationListener getRemoteNotificationListener()
           
 void handleNotification(javax.management.Notification notification, java.lang.Object handback)
          Called when a notification occurs.
 int hashCode()
           
protected abstract  void unexport()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteNotificationListenerSupport

public RemoteNotificationListenerSupport(javax.management.NotificationListener clientListener)
Method Detail

export

protected abstract void export()
                        throws java.rmi.RemoteException
java.rmi.RemoteException

unexport

protected abstract void unexport()
                          throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectException

getRemoteNotificationListener

protected mx4j.connector.rmi.RemoteNotificationListener getRemoteNotificationListener()

handleNotification

public final void handleNotification(javax.management.Notification notification,
                                     java.lang.Object handback)
Description copied from interface: NotificationListener
Called when a notification occurs.

Specified by:
handleNotification in interface NotificationListener
Parameters:
notification - The notification object
handback - Helps in associating information regarding the listener.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object