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. It implements java.rmi.Remote as a tagging interface, to avoid dependencies of the specification 1.0 implementation from mx4j classes

Version:
$Revision: 1.3 $
Author:
Simone Bordet
See Also:
Serialized Form

Constructor Summary
RemoteNotificationListenerSupport(NotificationListener clientListener)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
protected abstract  void export()
           
protected  mx4j.connector.rmi.RemoteNotificationListener getRemoteNotificationListener()
           
 void handleNotification(Notification notification, java.lang.Object handback)
           
 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(NotificationListener clientListener)
Method Detail

export

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

unexport

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

getRemoteNotificationListener

protected mx4j.connector.rmi.RemoteNotificationListener getRemoteNotificationListener()

handleNotification

public final void handleNotification(Notification notification,
                                     java.lang.Object handback)
Specified by:
handleNotification in interface NotificationListener

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