test.compliance.server.support
Class EmitterInvocationHandlerTest

java.lang.Object
  extended bytest.compliance.server.support.InvocationHandlerTest (src) 
      extended bytest.compliance.server.support.EmitterInvocationHandlerTest
All Implemented Interfaces:
InvocationHandlerTestMBean (src) , NotificationBroadcaster (src) , NotificationEmitter (src)

public class EmitterInvocationHandlerTest
extends InvocationHandlerTest (src)
implements NotificationEmitter (src)


Field Summary
 
Fields inherited from class test.compliance.server.support.InvocationHandlerTest (src)
invokeNoArgsNoReturnInvoked, invokeNoReturnInvoked, primitive, type
 
Constructor Summary
EmitterInvocationHandlerTest()
           
 
Method Summary
 void addNotificationListener(NotificationListener (src)  listener, NotificationFilter (src)  filter, java.lang.Object handback)
          Add a listener to an MBean.
 MBeanNotificationInfo (src) [] getNotificationInfo()
          Returns the notification metadata associated with the MBean.
 void removeNotificationListener(NotificationListener (src)  listener)
          Removes a listener from an MBean.
 void removeNotificationListener(NotificationListener (src)  listener, NotificationFilter (src)  filter, java.lang.Object handback)
          Removes a listener from the Emitter.
 void sendNotification()
           
 
Methods inherited from class test.compliance.server.support.InvocationHandlerTest (src)
getAttribute, invoke, invokeMixedParameters, invokeNoArgs, invokeNoArgsNoReturn, invokeNoReturn, isIsPrimitive, isIsType, setAttribute, setIsPrimitive, setIsType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmitterInvocationHandlerTest

public EmitterInvocationHandlerTest()
Method Detail

addNotificationListener

public void addNotificationListener(NotificationListener (src)  listener,
                                    NotificationFilter (src)  filter,
                                    java.lang.Object handback)
Description copied from interface: NotificationBroadcaster (src)
Add a listener to an MBean.

Specified by:
addNotificationListener in interface NotificationBroadcaster (src)
Parameters:
listener - implementation of the listener object
filter - implementation of the filter object or null if no filtering is required
handback - A handback object associated with each notification sent by this notification broadcaster.

getNotificationInfo

public MBeanNotificationInfo (src) [] getNotificationInfo()
Description copied from interface: NotificationBroadcaster (src)
Returns the notification metadata associated with the MBean.

Specified by:
getNotificationInfo in interface NotificationBroadcaster (src)
Returns:
MBean's notification metadata
See Also:
MBeanNotificationInfo (src)

removeNotificationListener

public void removeNotificationListener(NotificationListener (src)  listener)
                                throws ListenerNotFoundException (src) 
Description copied from interface: NotificationBroadcaster (src)
Removes a listener from an MBean.

Specified by:
removeNotificationListener in interface NotificationBroadcaster (src)
Parameters:
listener - the listener object to remove
Throws:
ListenerNotFoundException (src) - if the listener was not found

removeNotificationListener

public void removeNotificationListener(NotificationListener (src)  listener,
                                       NotificationFilter (src)  filter,
                                       java.lang.Object handback)
                                throws ListenerNotFoundException (src) 
Description copied from interface: NotificationEmitter (src)
Removes a listener from the Emitter.

Only the listener, filter, handback triplet is removed

Specified by:
removeNotificationListener in interface NotificationEmitter (src)
Parameters:
listener - the listener object to remove
filter - the filter registered with the listener
handback - the handback object associated with the registered listener
Throws:
ListenerNotFoundException (src) - if the listener was not found

sendNotification

public void sendNotification()