mx4j.connector.rmi
Class RemoteNotificationFilterSupport

java.lang.Object
  |
  +--mx4j.connector.rmi.RemoteNotificationFilterSupport
All Implemented Interfaces:
NotificationFilter, java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
IIOPRemoteNotificationFilterSupport, JRMPRemoteNotificationFilterSupport

public abstract class RemoteNotificationFilterSupport
extends java.lang.Object
implements NotificationFilter, java.rmi.Remote

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

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.2 $
Author:
Simone Bordet
See Also:
Serialized Form

Constructor Summary
RemoteNotificationFilterSupport(NotificationFilter clientFilter)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
protected abstract  void export()
           
protected  mx4j.connector.rmi.RemoteNotificationFilter getRemoteNotificationFilter()
           
 int hashCode()
           
 boolean isNotificationEnabled(Notification notification)
          Invoked before sending the Notification to the listener.
protected abstract  void unexport()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteNotificationFilterSupport

public RemoteNotificationFilterSupport(NotificationFilter clientFilter)
Method Detail

export

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

unexport

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

getRemoteNotificationFilter

protected mx4j.connector.rmi.RemoteNotificationFilter getRemoteNotificationFilter()

isNotificationEnabled

public boolean isNotificationEnabled(Notification notification)
Description copied from interface: NotificationFilter
Invoked before sending the Notification to the listener.
Specified by:
isNotificationEnabled in interface NotificationFilter
Following copied from interface: javax.management.NotificationFilter
Returns:
boolean true if the Notification should be sent, false otherwise

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


Copyright © 2001-2002 MX4J Team. All Rights Reserved.