org.objectweb.jonas.mejb
Class ListenerProxyImpl

java.lang.Object
  extended by javax.rmi.PortableRemoteObject
      extended by org.objectweb.jonas.mejb.ListenerProxyImpl
All Implemented Interfaces:
java.rmi.Remote, ListenerProxy

public class ListenerProxyImpl
extends javax.rmi.PortableRemoteObject
implements ListenerProxy

Proxy object on client side allowing remote notification delivery. Current implementation only supports one notification listener/listened managed object association (suppose a removeNotificationListener is called before a subsequent addNotificationListener calls). This is very a temporary solution.


Constructor Summary
ListenerProxyImpl()
           
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter)
           
 void handleNotification(javax.management.Notification notification, java.lang.Object handback)
           
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 
Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerProxyImpl

public ListenerProxyImpl()
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter)
                             throws java.rmi.RemoteException
Specified by:
addNotificationListener in interface ListenerProxy
Throws:
java.rmi.RemoteException

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws java.rmi.RemoteException
Specified by:
removeNotificationListener in interface ListenerProxy
Throws:
java.rmi.RemoteException

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.Object handback)
                        throws java.rmi.RemoteException
Specified by:
handleNotification in interface ListenerProxy
Throws:
java.rmi.RemoteException