org.objectweb.jonas.mejb
Class ListenerRegistrationImpl

java.lang.Object
  extended by org.objectweb.jonas.mejb.ListenerRegistrationImpl
All Implemented Interfaces:
java.io.Serializable, javax.management.j2ee.ListenerRegistration

public class ListenerRegistrationImpl
extends java.lang.Object
implements javax.management.j2ee.ListenerRegistration

ListenerRegistration implementation

See Also:
Serialized Form

Constructor Summary
ListenerRegistrationImpl(javax.management.ObjectName listenerMBean_on, java.lang.String proxyName)
          The constructor is executed on the server side.
 
Method Summary
 void addNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
          Add a listener to a registered managed object.
 void removeNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener)
          Enables to remove a listener from a registered managed object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerRegistrationImpl

public ListenerRegistrationImpl(javax.management.ObjectName listenerMBean_on,
                                java.lang.String proxyName)
The constructor is executed on the server side.

Method Detail

addNotificationListener

public void addNotificationListener(javax.management.ObjectName name,
                                    javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws javax.management.InstanceNotFoundException,
                                    java.rmi.RemoteException
Add a listener to a registered managed object.

Specified by:
addNotificationListener in interface javax.management.j2ee.ListenerRegistration
Throws:
javax.management.InstanceNotFoundException
java.rmi.RemoteException

removeNotificationListener

public void removeNotificationListener(javax.management.ObjectName name,
                                       javax.management.NotificationListener listener)
                                throws javax.management.InstanceNotFoundException,
                                       javax.management.ListenerNotFoundException,
                                       java.rmi.RemoteException
Enables to remove a listener from a registered managed object.

Specified by:
removeNotificationListener in interface javax.management.j2ee.ListenerRegistration
Throws:
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
java.rmi.RemoteException